Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.