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 to remove “MY WORDPRESS”” Label
- How could i add username field in WooCommerce
- Is there a better way to pull in custom content without querying posts?
- Exclude some authors from query
- WordPress | Date not always appear [duplicate]
- Taxonomy order exception for specific term
- using pre_get_posts for search results not found
- Does wp track views for posts?
- Category ‘pad_counts’ & ‘parent’ conflict
- WordPress posts for multiple years
- How to query for all posts that have a particular meta key?
- Make meta query treat meta_value as 1 or 0
- Query with meta_query and tax_query together not working properly
- Query about wp_query
- wp_query sort with meta_value_num is not working
- Custom taxonomy.php not working
- why does not my wp_query work?
- How to access custom WordPress database tables
- “tax_query” parameter is ignored when “p” parameter is set in WP_Query
- wp_query not working with post_type
- How to pass orderby params to $wpdb->prepare()?
- Detect inside a custom query the kind of post type to assign custom classes
- WP_query : Force last posts number over Reading Settings
- Order by most used tag
- Get author if post has multiple authors
- Array as ‘key’ in WP_Query