[Resolved] Get all IDs from $wp_query
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.
- The topic ‘[Resolved] Get all IDs from $wp_query’ is closed to new replies.