This probably is a easy one for many. And also probably is already answered here, but I don't know how to search for it - so sorry I did search but not found anything.
I like to get the contents of all posts currently visible on a archive page, during wp_enqueue_scripts
.
If I am right a good solution would be to just get_post_field('post_content', $post_id)
for all of them.
So what I need is just the IDs for the posts that will be displayed on the current archive page. Something that involved new WP_Query
or query_posts
I guess, but that a area I never really touched.