Get all IDs from $wp_query
-
Hello!
Is there anyway to get all matched posts IDs from $wp_query without looping it with calling the_post() function (I think it’s to heavy operation for this task)?For example. I’m loading page of some category and need to get only IDs of the posts in current $wp_query.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Get all IDs from $wp_query’ is closed to new replies.