Using meta_key
and meta_value
are good for filtering a single custom field. But for comparing two fields, you need to construct a meta_query
with your two key/values and a compare
operator.
See this answer which shows the various things you need to do to achieve this.
Related Posts:
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- WP REST API – get custom taxonomies based on terms & filter
- Is ACF being a honey trap? [closed]
- Add custom taxonomy fields when creating a new taxonomy
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- Get value in custom field with taxonomy [closed]
- Remove Category description textarea
- Create taxonomy with meta term using the WP Rest Api
- Custom metabox for menu administration page?
- Custom Fields and performance
- Is it possible to sort the post based on a custom field?
- Custom taxonomy – custom sortable column
- How to display submenus on page based on referring top-level parent?
- Add Category Name to REST API
- Display sub-taxonomies based on SELECTED parent-taxonomy
- How get custom field from custom taxonomy?
- Automatically assign taxonomy term if custom meta value exists
- How to add custom fields to admin UI and REST API response?
- How to add custom field to custom taxonomy in 4.4
- how to search in custom fields & custom taxonomy for custom search
- Getting yoast title for custom taxonomy
- Outputting an array of term meta values in a custom WooCommerce tab?
- Storing data into custom taxonomies VS post custom fields (post meta)
- List the number of posts for each custom taxonomy and specific custom field value
- Solve product properties with custom taxonomies?
- Is it acceptable to build functionality into a theme built for a client? [closed]
- WP REST API – Limit the taxonomy search to the first letter
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Custom fields to taxonomy
- Custom fields ‘for’ custom taxonomy?? Can someone explain why?
- Print terms with taxonomy and metabox value
- Styling Taxonomy Terms Individually
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- How to add contents of a custom field to a taxonomy term list?
- How can I hide admin columns showing extra custom taxonomy fields?
- Conditional display for custom fields/taxonomy
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- Custom Taxonomy in REST API
- I am trying to display information from a custom table from my wordpress users pages
- Save custom taxonomy data in different table not in wp_options for my own plugin
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Retrieving an intersection of two terms from two different custom taxonomies via API
- How to separate posts in loop?
- Search Tool only refreshes Page without showing results
- Display value of custom field of custom taxonomy in single post?
- Removing “s” from search with custom parameters
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- How do I display a custom field from a custom taxonomy in single.php?
- Multi-select field for Taxonomy can’t save the value
- WordPress implode & wp_insert_post question
- how to store values in database at hierarchical view
- Best structure for entering recipes in a WordPress theme?
- how does the wordpress rest API work
- Copy/clone/associate Custom field to Custom Taxonomy
- saving meta/custom field to tag
- How to support fifteen thousand terms in WordPress?
- Getting taxonomies associated with a specified post type
- Different Taxonomy Values for Each Post
- Filter through custom taxonomy with an array of taxonomy IDs
- What’s the best way to add taxonomy’s image in 2017?
- Loop through custom taxanomy in post and display custom fields from posts
- Why can’t I access Custom Taxonomy metadata?
- SQL / wp_update_post: change post custom field to CPT post taxonomy
- Filter by Custom Taxonomy AND Custom Field
- Can You Build Page Templates Without Extra Files
- Extra Meta Data for WordPress Multisite Taxonomy
- Taxonomy or Custom Field
- Terms added to custom taxonomy for custom post type only appear in Rest when added in code
- Is there a way to nest taxonomies or custom fields deeper than one level below the post type?
- WordPress REST API – get custom taxonomy category posts
- How to use custom slug and custom templates for custom taxonomy?
- Create multiple taxonomies with custom fields values on the fly when creating new posts
- Custom field with terms from another taxonomy programmatically
- Convert post meta to custom taxonomy?
- Count tags for current post and save into custom meta field (and update it on post edit)
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- how to show product custom taxonomies in woocommerce rest api
- Dropdown (with onChange) with custom taxonomies
- ACF – Get unique values of array
- Remove Custom metabox from particular page template is used
- ACF Custom field not showing in Timber Taxonomy page
- Pre_get_post custom taxonomy combined with custom fields?
- Adding a checkbox field to a (custom) taxonomy
- Add and Custom category for posts “PAGE”
- Is it possible to sort the post based on a custom field?
- Reset custom taxonomy meta data after saving
- How to add meta fields to custom taxonomy add/edit page?
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- sort Posts by custom user filed
- Register custom taxonomy from a Advenced custom field option page
- Avoiding stripping of HTML in Custom Taxonomy Meta Field
- add custom fields in custom taxonomy meta box in wordpress-3.5.2
- Use custom field as tag slug
- How can I show custom field according to taxonomy?
- Transfer taxonomy to custom field
- Custom Fields link to other pages, not search
- Taxonomy Extra Meta [duplicate]
- Any way to make custom taxonomy field searchable?