Created
December 13, 2017 21:58
-
-
Save BobaWebDev/81788f5eb85d622533b0c533e1b936c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// example 1 ( plain call ) | |
the_essence_posts_list(); | |
// example 2 ( with options ) | |
the_essence_posts_list( | |
array( | |
'orderby' => 'date', | |
'order' => 'DESC', | |
'amount' => 8, | |
'columns' => 3, | |
'category' => array( 4, 5, 6 ), | |
) | |
); | |
// Check https://codex.wordpress.org/Class_Reference/WP_Query for more info on accepted values for orderby and order | |
// amount is simply the amount of posts you want to show | |
// columns is the amount of posts shown per row | |
// category accepts IDs in array form |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment