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 orderby date not working
- Using is_main_query to select custom post type on certain page
- WP_Query ordered by custom field that is a date string?
- How can I hide posts that are over 2 years old
- WordPress custom search form with pre_get_posts not work
- WordPress: Keep order of query_posts list of post ID’s using post__in
- Query posts by specific word on title
- Date and Category query with filter
- add active class based on permalink and url
- slow query – Search for Media Gallery
- WordPress has a list of reserved words, can I override them, to use one in a query string?
- meta_query: check if number exists
- How to order WP_Query to group results?
- Search Page Returns Nothing
- WP Query causing timeout
- Woo Commerce using WP_Query to get products that match price range, with an additional required product attribute
- 2 queries with counters
- Multiple Query_Posts
- How to add date_query to meta_query array
- Order by the first array within a meta_query
- How can I query a radius of coordinates?
- How to create page that lists tags by initial letter?
- WordPress: Cron locking and Queue
- How to make the default WordPress search return borader results
- WP_Query shows all posts on single post pages
- Dynamically name array in WordPress loop – add/get values
- Creating Custom Query
- How do I subquery with custom meta fields?