Forum Replies Created
- estevaoacioliParticipant5 years, 1 month ago in reply to: Is there any way to get only the IDs of the posts in a query? #11078
WOW
I managed to make it work, thank you 😉
Here is my solution:
$post_ids = wp_list_pluck( $wp_query->posts, ‘ID’ );
print_r($post_ids);estevaoacioliParticipant5 years, 1 month ago in reply to: Is there any way to get only the IDs of the posts in a query? #11076Yes, that’s it