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
- Custom post type template not loading from plugin
- Issue with pre_get_posts on custom post type archive pages
- Custom Post Type Navigation on Custom Field
- register_taxonomy and register_post_type does not work [closed]
- Plugin translation not working apart from name and description
- Get rewrite slug of custom post type in template
- Pre_get_posts filter overwrites all search functionality
- Filter categories of posts with checkboxes
- Custom Post Type rewrite
- Admin notice not displaying
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- How can I create a custom meta box to add an mp4 video to a page?
- Custom Post Type: Upload Multiple Images
- WooCommerce product search titles only
- Detect where custom post type is declared
- Metadata for a taxonomy – is there any WordPress way of doing this?
- Remove rows in the manage post/page view
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- How to detect filter in URL in Category page?
- Custom query to filter posts that have current post as a taxonomy [closed]
- Access $post object when adding custom columns to list table
- Hook to override title, image and content
- Insert Multiple Post with Same Publish Button
- How to only show posts assigned to current user, only in certain post types
- Setting proper query for multiple custom admin filters
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- get_object_taxonomies() returns empty array for custom post type
- Add acf field in title (admin table)
- WordPress theme custom capabilities not works
- custom post type not showing in menu
- Custom posts don’t work
- Append date to custom post type url slug
- No posts found – Custom Post Type show_ui
- How to customize a permalink (URL) structure?
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- How to add a custom taxonomy to show up in a custom post type menu?
- Adding HTML tags or css classes to admin columns
- How can I see a list of my Custom Post Types of the last term I was in?
- Filtering WP_Query
- Create a page that will be used to create a custom post type
- Customize my custom taxonomy table in Admin panel
- Give a permalink to Custom Post Types without title
- Displaying custom taxonomy in the admin list of a custom post type
- Get parse_query filter to return slug instead of id
- Custom Post Type Nav to Subpage
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- Selecting a post in Dashboard
- filter custom post type by meta key in dashboard
- Custom admin post.php page
- Categories of custom taxonomy don’t show any posts
- Getting template_include to work when allow_url_include is off?
- A simple script to allow sorting of custom posts in admin?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- WordPress post_where & posts_join not working only for custom post type
- How to add a post slug to a url?
- Add custom ID to CPT posts only create not update
- Add custom post type as submenu [closed]
- WordPress multiple custom post types capability conflict in a single menu
- On update or create post redirect to current post position in list
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- Getting meta in editor plugin, and event triggering issue
- Orderby CPT custom fields not working
- How to Filter custom post type by taxonomy?
- Unable to get Custom Plugin Options data
- Update post meta not working in transition_post_status
- Filter term taxonomy metabox in custom post type
- Use custom metabox to update automatically a post after a given date
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Options page – dropdown of users
- Addition of custom option panel crashes Media Library & Admin Area
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- Custom Permalink to remove category word , keeping posts permalink with date?
- No Permission to add new Page, Post or CPT with Admin role