The is the the_posts filter, which sounds like what you want.
function filter_the_posts($posts) {
var_dump($posts);
}
add_filter('the_posts','filter_the_posts');
Related Posts:
- Nested meta_query with multiple relation keys
- numberposts? showposts? posts_per_page?
- Hook/action after WP_Query gets posts to query custom tables for post-related meta
- How can I save an array from a random post sequence for later use?
- All-in-One Event Calendar: Custom Query – Getting each event Instance [closed]
- RSS feed with specific keyword
- Limit search results to exact match
- Highlighting Sub topic in a post?
- Pagination Not working on Home Page with 2 Query
- Multiple keyword search
- Display different number of posts from one category on the different pages
- Get number of comments after modifying comment query
- Show default content if custom WP_Query has no posts
- Which filter/action hook gets triggered after a query has been performed?
- Include Sticky Posts with Custom Query
- $wpdb->insert inserting two rows in database
- Including only current user’s posts in search
- Create unique page without header.php for json feed
- Sub-loop / nested loops Best Practices
- How to loop for every result found in the_content() when using the search query?
- Is there any advantage of using default WordPress Search instead of creating a custom one?
- Order By table field comment_status in WordPress > 4.0
- Clean up WordPress code that repeats
- How to optimize multiple WP_Query() calls on one page?
- Use post object from first query in second query
- add_actions called from functions.php not returning good values
- Query to get siblings and parent page
- Set global $wp_query/$post variable for dynamic page generation
- How to list custom fields as headers and list all pages sharing that custom field under it?
- WP_Query ignoring tax_query when is_singular
- Cutom wp_query for geolocation search, pagination not working
- Include data from custom table in WP_Query
- echo a specific meta_key queried through a custom post
- WP Group posts by year(desc) > month(desc) > date(asc)
- How can I override one post and make it display content for another post?
- I need help using pre_get_comments to limit comments in the comments admin screen
- How to order posts on each different category?
- WP_Query – How to get all posts of specific days of week by custom field date?
- Get specific ACF key and value from all posts – no access to DB
- Orderby two meta fields not working
- Custom wp_query – I’m getting ‘all’ post, not the specific post in the query
- meta_query with array as value with multiple arrays
- Adding pagination to sub-wp_query within a singular post page
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How to make a query returning pages from multiple parents
- Prioritising and Ordering Posts By Category Name Using A Custom Loop
- Where is this query?
- Elementor posts custom query based on tag [closed]
- Add metabox if there is at least one post available
- How to use wp query in my custom page without including header and footer in wordpress
- Custom filter from post meta
- Custom order revolution sliders post base slides as inserted in Specific Posts List field
- WP Query for all events prior to current date
- How to extend WP_query to a specific table?
- Display the search results like the original pages
- add action for wordpress query at a specific position
- Multi line of $wpdb->query just run 1 time and end the loop right after
- Add to search posts query array with post IDS which will appear first
- Woocomerce – Order products by float attribute in archive pages
- remove_action – pre_get_posts – does not restore original query
- Multiple values in WP_Query : category__and
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- Track write actions to the database
- Custom query using WP_Query is not working
- Filter WP_Query output before it is accessed (pre_get_posts)?
- Limit the number of posts from a specific category on index.php
- Get the type of an advanced custom field (ACF) in a WP_Query loop [closed]
- Switched from query_posts to wp_query, pagination no longer working
- WP_Query breaks pagination
- Pagination problem with multiple loops on the same page
- shortcode with $atts with strange results
- I need to get all categories from a WP_Query
- $wp_query->found_posts; returns zero
- Rewrite URL custom search query
- How could i add username field in WooCommerce
- How to display page content in a page template?
- Multiple relationship for multiple tax_query in WP_Query
- Order posts by ID in the given order
- ACF datepicker meta_query Compare Dates in m/d/Y g:i a – Not in Ymd Format
- How to filter by category in REST API, excluding posts also in other category term?
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- How to order posts by custom WP role?
- WP Query and order by particular specified IDs
- Get the post permalink within the loop but without additional DB query
- Display revision if post status is pending
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- How To Remove/hide some specific categories from two different categories widget from sidebar
- WP Query search for attachments and their exact title
- How to add another parameters to WP_Query?
- How to display posts month by month?
- Display posts with date wordpress default
- Pagination is broken and I need help fixing it
- Query total number of posts
- How to display a posts 1 year ago with custom WP_Query loop?
- Check on which page specific result exist
- WC displaying products from category
- Loop returning only 1 result
- Fetch posts that match term slug first two letters (wp query)
- How does one perform a sub query with different post types
- Stuck in the query loop