Won’t let me comment and possibly a silly question but have you tried putting die(); just after the if statement to be sure the conditional is working correctly?
Other wise I force meta values to become terms in an hidden taxonomy and utilize those as filters. I can expand on that if you like but don’t want to go that way too much as that isn’t the topic of the question.
Related Posts:
- Filter by custom field in custom post type on admin page
- How can I filter posts by post_parent in the admin?
- Filter by custom Field for Custom post type Admin Listing
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- How can I add a column in the wp_list_table of the admin area?
- How do I set the link in the Custom Post Type admin menu?
- Add html to cpt main page / admin edit.php
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Filtering posts list table
- wordpress remove views from action links in a custom post
- How to group navigation items in the admin panel
- sortable columns for multiple custom post types not working
- How do I add custom HTML to the content of an archive page’s posts?
- Modify a plugin function output from another plugin
- Is there any filter to add a custom attribute to the tag in admin panel?
- Insert custom taxonomy into category query
- Help Adding filter to Add Media button for custom post type
- Load a script just to custom post type in admin
- How to order posts of a custom post type by date DESC in dashboard Admin?
- How to set a fall back template for a custom post type in a plugin?
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- How to add multiple images to custom post type?
- Redirect after deleting post and keep track of pagination
- get_edit_post_link() not working as expected when passed id in plugin
- Custom admin columns for ALL custom post types
- Ajax filter with custom taxonomies
- WordPress metabox file upload in custom post [duplicate]
- working Custom Post Type and Widget code no longer works when moved from functions.php to plugin
- How to remove CPT comment feed from head?
- WordPress custom post action hook
- On clicking on the category name the page is redirecting on 404 pge
- Hooking into wp_export filter for custom post type [closed]
- Custom Post Row Actions
- How to: add option to add more checkboxes on custom post type
- how to set default value for checkbox in wordpress
- Custom post admin filtering by post meta (the date)
- Admin Column Text Positioning
- Customize permalink when creating a post
- Custom Taxonomy Not Showing in Menu
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- WordPress theme custom capabilities not works
- Adding HTML tags or css classes to admin columns
- Filtering WP_Query
- Create a page that will be used to create a custom post type
- Displaying custom taxonomy in the admin list of a custom post type
- Orderby CPT custom fields not working
- Filter term taxonomy metabox in custom post type
- Use custom metabox to update automatically a post after a given date
- Loop filtering Custom Post Types and/or Categories
- How to use manage_$post_type_posts_columns with underscore in post type?
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?
- How do you make a list and list item relation if custom post types?
- Add form after woocommerce admin order edit
- How to Use Custom Meta Field Instead of CPT Title in Post URL
- How to filter url on post submission?
- Validate Custom Post Type fields
- Is it possible to sort metabox teaxtarea values?
- Custom Taxonomy Filter Issues
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Multiple custom post types on same admin page
- Content in WP Editor displayed below CPT shortcode [duplicate]
- Filter search posts by post meta?
- Modifying search results based on post_type
- Remove filter and view options from custom post type edit screen
- restricting custom rewrite to just one custom post type
- Change Text in Admin Panel
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Custom Endpoint For Specific Custom Post Type
- Store a value in global scope after init hook is fired
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- How to display the post using a shortcode in WordPress?
- Custom post type specific item design
- Filter posts by their related field’s custom field
- Issue removing columns from admin table
- Shortcode and get_template_part
- dynamic vue widget inside custom post
- WP REST API Custom endpoint don’t work in my plugin
- how to allow subscriber to add/edit/delete custom post type
- Pagination in wp-admin for CPT
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Enable shortcodes on custom post type
- Custom meta box in editor of custom post type not working
- Creating adminable dynamic filtering on custom post type
- Remove Custom Capability
- Can I override the permalink/slug on creation
- call_user_func_array() error after moving to another server
- add current-menu-item to multiple custom post types
- Custom Taxonomy Showing in WP Menu
- Issue on Adding Taxonomy to Custom Post Type Using Function
- How to apply order on custom taxonomy and custom meta key on custom post type
- Hide custom post type and use its slug in new plugin menu
- Don’t display post if post has empty body
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Filter page ID outside the loop and order
- Paginate yearly archives for a custom post type