WP_Query arguments order

Question

Given the following example of a custom query

$query = new WP_Query(array(

        'posts_per_page' => 7,
        'categor_name' => 'events',
        'offset' => 5

));

Does the order of arguments matter?

Will this query first select all posts with the given category and then offset the first 5 or will it first offset all 5 posts then select posts with given category?

0
, fmarkovic 4 years 2019-11-29T12:13:10-05:00 0 Answers 83 views 0

Leave an answer

Browse
Browse