I think the issue is on the meta_query you need to add an other argument like
'compare' => '='
you can also use relation.
I suggest you try the query first.
Related Posts:
- Search with filters and title
- Search pre_get_posts filter which can handle multiple post types and categories?
- Filter keywords from search query
- Ignore dots when searching in the media library?
- Search results sorted by post types
- Adding id and class to the search input in WordPress search form
- How to apply filter at search of woocommerce products?
- How to edit dashboard search posts button texts for my CPT?
- Filter custom post type using multiple taxonomy dropdowns
- Admin Backend – Search Pages only by title
- Comment search plugin
- Create Search Form to Filter Through Terms
- Map plugin with proximity search compatible with Buddypress
- How to trim white space in search terms?
- conditional search
- How to set a filter search for categories of blog posts in wordpress
- Customising the default wordpress search functionality
- Search with filters
- Modify WordPress search behaviour in backend?
- Re-order search results with posts_orderby filter and post meta value
- meta box loop problem with a search filter
- Remove the post_content search from WHERE clause (and CONCAT sql function)
- Custom search fields and AJAX support
- Filter and Search
- Taxonomy search filters
- Filter posts by multiple checkbox categories
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields
- Not able to change wp_title using add_filter
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- Changing JPEG compression depending on image size
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- add_filter to youtube embeds?
- SSL certificate for the host could not be verified
- Store source permalink on XMLRPC calls
- How to limit the pages displayed for choosing parent page on page attribute’s menu?
- Customise Jetpack Publicize text
- Can’t change a label in woocommerce with the normal filter
- WordPress RSS feed – filter RSS content by custom field value
- What is the filter hook for custom fields content?
- Add class to woocommerce checkout body based on filter [closed]
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- How to replace any occurence of Gravatars with a local placeholder image?
- Explanation for remove_filter used in the below code [closed]
- How to change the blog title with add_filter? details below
- How To Get User Data in Callback Function for pre_user_nicename?
- What’s the best way to split admin-only functionality in the theme’s functions.php file?
- Editing
- the_content filter – checking the post
- add_filter to apply_filters that exists within class
- Which built-in WordPress files are safe to edit?
- How do I target a single page to modify the comment form of only that page?
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Adding a title prefix with the the_title filter
- How to removes all instances of thumbnails displayed in my theme?
- Input type search in Menu
- Contact Form 7 filter similar to preprocess_comment [closed]
- Walker_Nav_Menu doesn’t work in wp_page_menu_args filter
- How to modify an existing meta description?
- Adding TinyMCE buttons without removing plugin buttons?
- upload_files cap to not loggen in users – add_cap to not logged in users
- search suggest – filter post type
- How to customize the “Insert/edit link” popup box?
- How to filter backend post list showing only posts having a shortcode
- How do I override the_excerpt so that it will display full content?
- Why does WordPress strip custom HTML that are form elements and theme SVG icons?
- Get current user data
- How can you wrap add_filter with a if is_home() statement?
- How to add attributes to WordPress Admin Sub Menu List Items
- How do I hook my function to run only after submitting login form
- How to write a filter to remove a form field (WordPress) [closed]
- Why doesn’t this function work when I know that the IP Address is “true”?
- term_link filter rewrite link only applying half of condition?
- How to change dynamically page title according to variable data?
- Create a pre-filtered version of the Media Library
- What is the action hook to use if you want to capture the new password during password change?
- Get_template_part inside filter?
- How to filter Sidebar Content
- Removing URL and adding container around image in the featured image metabox
- How would I use a filter to remove header banner on certain post types
- What are the steps + prerequisites for using an add_filter?
- Replace Data In Post & Update Meta Field Post Is Saved
- How to add custom media library mime icons?
- get_post() with filters applied
- Ajax filter – show all results that contain at least one filter
- WP_Query filter by custom meta
- How to add a blog filter bar without paying money. (example inside)
- Override admin selected page layout
- WordPress: Issue with filtering users using date range
- Does anybody know what the $current_screen ->id for customizer.php is?
- Filter and validate user role in registration
- wordpress filtering out caps in wp_title? (UpperCase is changed to Uppercase)
- String Replace Caching & Chance of Collisions
- is_page_template() doesn’t work with excerpt_length filter
- Turn wp_tag_cloud into a front-end filter
- confusion with add_filter
- post->post_content filter
- How to change this WP logo and posts url in block editor?
- Limit total tags in the_content