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?
- Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts
- custom post type upcoming post and past post
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- Filter categories of posts with checkboxes
- Shortcode for display posts on home page show only one post
- Custom Taxonomy Permalinks Redirection
- Add custom column in custom post type edit page
- Hide a widget inside a div on specific type of post
- 2 Different Custom Post Types in Submenu
- Reworking function for counting custom post type posts count
- help
- Assign category a default post type
- show all custom posts types in home page
- Add an Outside Wrapper to my Header and Make it Full Width
- How to Display Posts From Category Within a Custom Taxonomy?
- How to Make infinite loop of post
- WP_Query with custom post type ID
- Published post auto change status to pending after 90 days
- How to retrieve all wordpress posts (specific type) inside a function in php?
- Automatically update slug with latest title within custom post type [duplicate]
- Modifying the default post from wordpress
- How to Query in WordPress which shows Alphabetic Posts?
- Meta box not appearing in my custom post type
- Function to erase every post from a taxonomy
- Display custom post counts for author , not default posts
- Building a Data Intensive Website with WordPress
- Order posts by years
- how to achieve this permalink abc.com/CPTName/CustomPostTypeCategorySlug/categoryname
- Display all Categories except ones with a specific parent
- How to change Elementor Template for Single Page Post on Load
- Create WordPress User in backend, and automatically create a new post in Custom Post Type with user uame as the Title in the post
- Display another page / custom post type as home page
- Different number posts per page based on custom post type term id
- Post template not applying on theme (potentially rendering as Page template)
- Show custom post status when logged out
- $_POST from a Meta Box
- Why is wp_list_authors not picking up Authors from CPT’s?
- Change Search display for Custom Post Type
- User Archive page for Custom Post Type – Pagination Issue
- fusion builder missing from custom post editor
- Stored meta from attachment, video length?
- Custom post Query and WordPress Post Query Clash
- Multiple Custom Post Type with different Taxonomies
- Links Image in “Catalog” Page to Posts
- How to create a discussion post when a custom post is created?
- Filter By Term Not Working – Custom Post Type
- how to display notifications in the wordpress menu when a new post is published
- Editor role isn’t seeing specific post type posts with only post_type parameter
- custom post type does not working when adding in child theme function
- How can draft post after 1 year
- Custom Post Types and Posts are mixed
- How to create content automatically when a post is published?
- query_post causes the posts to be loaded twice on load more posts
- Hook only specific post type
- Custom Post Type permalink not working on new posts
- Retrieving IDs of child pages which are in a different post type
- Updating User Meta from Custom Post Field Upon Publish Not Working
- Turn post into simple slideshow
- post in a lightbox?
- Generate daily archive whenever any post type is added
- Invalid Taxonomy in template
- Custom post type functions.php if statement on action
- Query multiple post of which one by taxonomy
- Cannot exclude particular post from loop of custom post type
- the_content() stop images being pulled through
- Apply text based styling done for a single post in WPBakery to all posts / create a template out of it [closed]
- Different layouts for different post types in wordpress?
- How to create a job post by email parsing? [closed]
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- How to automate the creation of advanced layout article/post
- Display code if title of the custom post matches title of other post
- I want to show a list of posts under specified categories
- Hide load more button if no more post in selected category