New WP_Query calls Pre_get_posts filter twice
Related Posts:
- Display posts from only one post form in custom query and exclude in main query
- Multiple meta_key ordering with pre_get_posts
- Using pre_get_posts with WP_Query
- WP_Query orderby post__in remains ineffective in the Loop [closed]
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- How to uniquely identify queries?
- Changing Posts Per Page and offset with pre_get_posts
- ajax category filter
- WordPress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given
- Slow SQL_CALC_FOUND_ROWS Query
- “pre_get_posts” firing on every query
- Using is_main_query to select custom post type on certain page
- SQL Statement generated by WP_Query not producing expected results
- Function to check if author has posted within the last x days
- Sorting Posts by custom field
- How to pass custom parameter to WP_Query for filtering in pre_get_posts
- Recommended way to drop a pending query (in pre_get_posts)?
- Single page theme that uses pages for the content
- How to get any tag ID
- WordPress custom search form with pre_get_posts not work
- order by multiple meta keys in pre_get_posts
- Get posts using WP_Query
- Finding post content that begins with a specific character
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Using pre_get_posts on a specific core/query block
- Best practice custom function, where to echo the variables?
- Searching through different categories on different pages code is not working
- How to get user_id from wordpress database inside ajax function?
- How to display future posts – modified query still yields 404
- When querying a combination of posts and other meta fields, is there a better solution than directly modifying the WHERE value?
- Formulate a url to show posts with both taxonomy terms
- Exclude admin from WP_Query Contributors
- Offset Page Loops and Pagination
- pre_get_posts order by not working
- Multiple Loops Inside a Function
- Adding a parameter to the default query
- Using WP_Query in “parse_query” or “pre_get_post” in Posts2Posts
- Single meta_query query using OR instead of AND in request’s WHERE statement
- How to choose between hooking into per_get_posts or into parse_query
- How to change main query based on post meta
- new WP_Query to get max price meta value not working
- WP_Query, pre_get_posts and offset
- Complex WP SQL Query
- Can I set my WP_Query to be a Main Query?
- Show scheduled posts in main loop but not in WP_Query?
- Category applied to pages, creates multiple breadcrumb entries after a search query (On the translated site)
- wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’
- Filtering out child category posts from parent category archive not working
- Order ascending is ignored in meta query?
- meta_query not working as expected
- Shouldn’t I be able to modify the main query by this filter?
- How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?
- using pre_get_posts for search results not found
- Hide elements outside loop based on query
- WP Query – order posts by meta field first and then order the rest
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- queried_object using pre_get_posts gets notices and warning
- date_query in pre_get_posts out of memory
- Loading two different AJAX requests on two different pages
- How to load a script code only in posts?
- WP_Query – How to get all posts of specific days of week by custom field date?
- Sorting search results with custom dropdown
- Create a notification for post field
- Trying to get property of non-object in: $wp_query
- How to apply pre_get_posts to a custom query?
- $wp_query->found_posts not returning correct value
- WP_Query, Paginate by Custom Field
- “pre_get_posts” orderby custom date field in different format?
- Replace wp_query with wp_user_query
- Block internal search queries with pre_get_posts and regex rules
- Make a products only viewable to a specific user ID in meta_query pre_get_posts
- is_user_logged_in not working from WP-API (wp-json)
- Search Exact on WordPress – Relevannsi Solution Not Working
- Pagination repeating posts on search results
- pre_user_query vs pre_get_posts
- Can I alter the main loop to ‘orderby’ a custom callback?
- How to check if logged in user have pending custom post?
- order posts by a secondary query that counts items
- Custom WordPress post query for displaying time-released content on website
- How can I re-query post_type and rewrite the url?
- Custom query for custom post type not getting correct post ID
- How to upload 3 attachments to current post?
- Woocomerce – Order products by float attribute in archive pages
- Global page ID variable empty error
- Get post Number with local loop and template
- Save query in function for custom gallery
- Seach and categories not working when ignoring sticky posts in main loop
- What argument does my function need to echo get_results() query results
- Using the same WP_Query for shop and widgets in WooCommerce shop
- Modify query to exclude certain ids and certain parents and its corresponding children
- Declare inline background image in functions.php
- Hiding all posts/products/pages from a site based on a custom taxonomy/domain name
- Adding a Theme Customizer Control for Posts_Per_Page
- pre_get_posts or $where, which one to use?
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Looking for a way to exclude frontpage and nav menu from query filter
- Custom post types loop on a page template
- Pre_get_post on CPT archive page
- 1500+ duplicate queries via get_option function (query monitor)
- How to put posts with some taxonomy on top of others in `pre_get_posts`