php - How Can I Do LIMIT 1, 2 In WP_Query -
I am using the Wp_Query method and I have to learn that there is a parameter to limit my query. I try to use LIMIT 1,2 in WP_Query. Thanks for advance!
$ args = array ('post_type' = & gt; post ',' post_status '= & gt;' publish ',' orderbie '=>' id ',' order '= & Gt;' DESC ',' Meta_query '= & gt; array (array (' key '= & gt;' featured ',' value '= & gt;' avat ',' comparison '=> = '))); // query $ the_query = new WP_Query ($ Args); You can see the posts_per_page and offset
Comments
Post a Comment