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
- 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
- Custom metabox for menu administration page?
- Custom Fields and performance
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- 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?
- How to display posts from a single category within a custom taxonomy
- How get custom field from custom taxonomy?
- 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
- 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?
- 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?
- Print terms with taxonomy and metabox value
- 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
- 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?
- 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
- 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
- Extra Meta Data for WordPress Multisite Taxonomy
- Taxonomy or Custom Field
- Using Custom Taxonomies to organise products – struggling to call a correct list
- How to use custom slug and custom templates for custom taxonomy?
- 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)
- ACF – Get unique values of array
- Remove Custom metabox from particular page template is used
- 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 filter the data’s comparison operators (>= &
- 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
- Use custom field as tag slug
- How can I show custom field according to taxonomy?
- Custom Fields link to other pages, not search
- Taxonomy Extra Meta [duplicate]
- How do I query multiple specific posts from a custom taxonomy?
- Can you orderby slug in a taxonomy archive page using WP_Query?
- Any way to make custom taxonomy field searchable?
- Advanced WordPress search form based on custom taxonomy and custom meta value
- query posts returns 10 records
- More than one Hierarchical Taxonomy and SEO
- Getting taxonomies specific to categories
- Group custom taxonomies based on tags contained in their posts