The trouble with meta queries is they require an additional join per filter. Say you have a property site, and you’re searching by location, rooms and price. That’s three joins. If you were using taxonomies, just two (terms
and term_taxonomy
) – no matter how many filters.
The other reason taxonomies tend to beat meta queries is their db schema. They’re well indexed and optimised for searching – the meta table, whilst indexed on meta keys, has a value field that’s large text – start querying on that bad boy (especially LIKE
statements) and MySQL will have to take a breath or two.
Having said all that, meta queries have their place and can be extremely useful (with caution). And to be honest, unless you’ve got thousands of posts, or you’re applying several meta queries, the difference will probably be negligible.
Related Posts:
- Loop through custom taxanomy in post and display custom fields from posts
- Transfer taxonomy to custom field
- How to show to show post list under the specific category name using jetengine query?
- How do I exclude a custom taxonomy from the post loop
- Is ACF being a honey trap? [closed]
- Add custom taxonomy fields when creating a new taxonomy
- Filtering custom taxonomies
- Using WordPress to make a “Product Search” type navigation drilldown
- How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get value in custom field with taxonomy [closed]
- get_query_var(‘paged’) always returns empty
- Remove Category description textarea
- Custom metabox for menu administration page?
- Custom Fields and performance
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- search query within custom taxonomy term, post title and meta field
- Is it possible to sort the post based on a custom field?
- Showing posts by collection of specific terms and texonomy
- Custom taxonomy – custom sortable column
- How to display submenus on page based on referring top-level parent?
- Problem with query_posts for a custom taxonomy in theme options
- Link to most recently created category of custom taxonomy in primary navigation menu
- How to display posts from a single category within a custom taxonomy
- Advanced Tax Query
- How get custom field from custom taxonomy?
- Automatically assign taxonomy term if custom meta value exists
- Sorting Posts Via Custom Taxonomy Values Using Checkboxes?
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Last posts from custom taxonomy
- Taxonomy.php issue with search and filters
- 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]
- $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?
- cannot get multiple loops using tax_query
- Print terms with taxonomy and metabox value
- Styling Taxonomy Terms Individually
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Alter post order on taxonomy template
- query_posts and custom taxonomy posts order
- 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?
- quey posts from different categories with taxonomy
- 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
- How to separate posts in loop?
- Show all taxonomy’s terms’ posts having another taxonomy’s term in common
- 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
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- WordPress implode & wp_insert_post question
- how to store values in database at hierarchical view
- Best structure for entering recipes in a WordPress theme?
- WP REST API – get custom taxonomies based on terms & filter
- Using WP_Query and Query_post for the loop?
- Copy/clone/associate Custom field to Custom Taxonomy
- How to write sql query to get the posts from a custom taxonomy term name
- saving meta/custom field to tag
- How to support fifteen thousand terms in WordPress?
- one post per term taxonomy
- 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?
- 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
- Insert taxonomy slug into loop class
- Can You Build Page Templates Without Extra Files
- Extra Meta Data for WordPress Multisite Taxonomy
- Taxonomy or Custom Field
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Is there a way to nest taxonomies or custom fields deeper than one level below the post type?
- 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?
- Group posts in a category based on tags in 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?
- 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