If $query->query_vars['suppress_filters']
is not set you will get that message.
Use empty($query->query_vars['suppress_filters'])
instead of false == $query->query_vars['suppress_filters'] )
or use $query->get('suppress_filters')
like this false == $query->get('suppress_filters')
.
Untested (minimally tested) but I believe either of those should give you the same results minus the notice.
Related Posts:
- Set posts of a custom post type to be private by default?
- How can I add dropdown widget/box to admin post page?
- Limit Authors to their Own Posts on front-end excluding admins
- Multiple Content Block
- Shortcode not working with post counter
- Changing default ‘posts’ parameters with register_post_type_args
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Allow users to create posts without logging in?
- How to assign classes to all elements?
- Showing custom post type categories in the menu
- WordPress notification if new post published
- Get post format
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Function to limit number of custom post types on homepage – TwentyTen
- Display author box on just certain category posts?
- redirect after submiting post for review
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- subtracting the current post form then whole loop, which is generating all CPT titles
- When post is Published, insert into custom table a number – custom post type
- Post that populates itself (almost) automatically using data from imported excel file
- How to mark posts as visited
- Work and Display a Custom Post Type as a normal Post
- Featured image in custom post is being disabled
- How to make post page unique and show it on home page?
- How to filter homepage posts by popularity? [closed]
- How to make a non-public post on wordpress approval?
- How come Featured Image isn’t showing up in my Custom Post Type?
- How to use a custom post type archive as front page?
- How make get_next_post() return first post when viewing last one
- Date archives for custom post type
- modify all posts of a category to “no comments allowed”
- How to show related posts by category or custom post type?
- ascending order custom post type
- Display taxonomy term only if there’s a value
- How to show post title outside of loop? [closed]
- Append taxonomy terms as class names in markup?
- How to delete all posts from a custom post type?
- Update content of multiple pages/posts at once?
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- CPT’s archive and single page not working [closed]
- GravityForm: Populate Dropdown with custom post type [closed]
- Trying to edit the single page from a Custom Post
- How to Submit Post Via cURL & PHP
- How to retrieve category NAME instead of ID in a function with a taxonomy custom field?
- is there a way to retrieve posts that do not have a featured image assigned?
- WooCommerce product search titles only
- I did group my search results by post type, but how can i give each of them its own order?
- Storing posts from query and accessing later via AJAX call
- If post has custom field then display css-class
- Custom post type is showing custom home page, not archive page
- How can i add thumbnails images to particular post (using code not admin pannel) in wordpress
- Showing posts from different categories and from custom post type
- Query taxonomy of taxonomy of custom post type
- custom post type category count shortcode
- Add post location with mile radius allowing search
- Custom Post Slug same as Parents Category Slug
- Custom Post Type within the Loop on Homepage (Page Template)
- How to change permalink to include custom post type
- How to get all tags of a custom post type by id
- How to define which register_post_status goes to which register_post_type?
- Global custom meta box
- Create new custom post and post category of same name
- Load Next WordPress Posts With AJAX?
- PHP question: how to combine syntax?
- If there is only one post (show elements) else (show other elements)
- Custom post type menu
- Get current user id
- Modify Posts from Custom_Post_Type within the plugin
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- Custom posts – tag pagination
- Adding custom post formatting options in custom post types
- how to redirect to a custom post template
- Function to add custom HTML into head in custom post-type list page
- Submit Custom Postypes from frontend
- Need help with Custom Post Types and Taxonomies
- list articles in admin showing nested categories or slugs?
- Search CPT by tag ids
- Define multiple prefixes for custom post type
- order custom post type posts by custom date
- How to show posts of the same category on a page?
- Create posts inside CPT post
- Need to display author’s email id in the “Edit post” field in wp dashboard. How do I do this?
- Custom permalink rewrite rules – how do I fix this?
- call a function when insert and update a custom post type
- Populate custom post type/custom fields from an external database
- Custom Field to post_title
- Most efficient way of showing children posts?
- Custom post type with two templates
- Post Custom & Taxonomy 404 error
- One Post with different content, depending on a Page
- Custom Post Status & Taxonomies
- How to display data with pagaination on backend?
- Edit post meta direct from post.php?
- How to Arrange Support => Thumbnail
- Front-end form submission not creating post
- Post being scheduled that shouldnt be schedulded
- show the most recent date of all posts to display on front end
- Comments are not working on Custom Post Type