I found the solution in this article:
https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/ .
I know that it causes a page refresh but going for Ajax based solution is an overkill.
This solution code is very elegant and easy to follow and understand.
Although taxonomy might be faster they require a lot of work with creating metaboxes and stuff so for small custom post type (Very few entries) there won’t be a performance penalty.
Related Posts:
- Advanced search form with filters for custom taxonomies and custom fields
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Custom field values deleted when trashing custom post type
- Search multiple custom fields by using meta_query
- Custom Post Type – Taxonomy Dropdown Menu?
- How do I implement custom fields without using any plugins?
- How I check if the same post slug has not been used before publishing?
- How to sort a table of custom posts by column containing custom field
- Issue with saving custom post type when editor is removed
- order by meta_value serialized array
- convert Custom Fields Option-Values to Tags/Taxonomy
- Automatically Insert Custom Field on Custom Post Type Publish
- Display custom post types with custom date field value (before today) & order by custom date field
- How to have the right design for a custom post type without accessing themes
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Create a post in custom post type using field in registration form after users submit form
- WordPress custom meta field for custom post not storing data
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- How to Duplicate (multiple meta box)?
- List all images from a single post meta value
- WP_Query: include custom post type only with specific meta value
- Is there a way to get a file URL from the relationship ACF field?
- Want to Add Custom Fields for Uploading video to WordPress Users from front end
- Meta Key Value in current-user-only loop
- How can I dynamically add a post to a custom post type which uses a custom field?
- Custom Posts Types as Custom Fields
- dynamically add a custom field or metabox to custom post type [duplicate]
- How to implement a Google map store locator
- Random image from tag/custom type on sidebar
- Query & Order posts by custom fields
- retrieve Meta field value from CPT and set those values as Image Meta Field “Title”
- Set a maxlength for the title input in a custom post type
- Update Post Meta for a logged in user
- Problem querying Custom post type by custom fields
- Using custom field content as expression in IF statement [closed]
- ACF From & To Date Validations
- Query Multiple Custom Posts by Custom Fields
- Disable saving posts as draft (make all posts mandatory regardless of the post status)
- Woocommerce custom field search in custom post type [closed]
- Hierarchy and access control for Custom Post Types (CPT)
- Hierarchical custom fields
- Fields for different parts of a page
- Facebook social publisher and custom post type fields [closed]
- Searching Custom Fields
- Custom Post Meta from custom metaboxes is randomly being deleted
- How to display custom field value on page?
- How to get specific post meta by title or id
- Populate a custom field dropdown with post titles by author
- echo selected value from dropdown
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Get data from PHP to JavaScript to set position of each post on front page
- add post meta value
- Get custom term meta problem on single post type
- Adding Template Post Content
- How to display a WordPress Custom Field only on a specific day of the week?
- Filtering custom posts by custom fields (ACF) [closed]
- Incorrect ordering of custom post type based on time
- How can I see a list of products that I have set to outofstock through a custom field check box?
- CPT Repeatable Fields + Undefined Index
- Filtered by a custom field, ordered by another
- delete duplicate meta_value with same post_id
- Search CPT Title AND Meta
- Custom field only on custom post type?
- Writing a custom Glossary plugin
- Filter search posts by post meta?
- Adding a location field to buddypress activity
- Display Posts that fit a certain criteria on Category pages
- Sort custom post column by generated value?
- How to only display all posts to a custom User Role?
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Filter posts by their related field’s custom field
- register_rest_field update_callback don’t work for $_FILES
- How to convert Post Object Custom Field into Tags
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- I want to create a metabox under custom taxonomy
- How can I register multiple custom post fields to json?
- Sql Update CPT from publish to draft and particular custom field
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- check_admin_referer not working in custom meta box for custom post type
- WordPress loop add heading before first of type
- How do i create user accounts from custom posts that have email addresses
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Best way to use Category & Custom Fields?
- How do I add custom fields to posts without having to manually add everytime I post?
- How to display custom post type ordered by a custom field date
- Setting a custom $query->query_vars[‘meta_key’] breaks the WordPress menu
- WP_Query and two custom fields returns no posts
- Is it good practice to search for custom posts based on custom field values?
- Custom post type with custom fields enabled, is there a way to set a default group of fileds?
- Storing/querying custom date data
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- How to store datetime from custom meta box so that it can be sorted by
- Custom Post type easy way for editors
- Adding a custom field after post title (ex.Example Title [30 Second Read])
- Creating post custom field text area
- querying to custom field over ACF REST API
- Custom Sort Order for Custom Post Type Taxonomy