m
  • Blog
  • About
  • Contact
  • Blog
  • About
  • Contact

wp_query

Tag

Replace Post Meta Query with Taxonomy Query

Posted by Kellen Mace on September 6, 2015 No comments

In this post, I’ll cover how to replace a post meta query with a taxonomy query. Why, you ask? WordPress’ postmeta database table is not optimized for queries, so querying for posts based on their post meta like the below is inefficient. View the code on Gist. A much more efficient way to do this is […]

Read more

Latest posts

  • thumb

    Get Term Being Edited on term.php WordPress Admin Page

    April 3, 2018

  • thumb

    Get Menu Modified Date in WordPress

    February 23, 2018

  • thumb

    Download and Insert a Remote Image File into the WordPress Media Library

    February 21, 2018

Tags

admin advanced custom fields backbone capabilities code sniffer coding standards customizer custom post type database dropdown edit slug javascript load test multisite MySQL nginx node npm permalink phpstorm plugin post meta post type role selectize sideload slug ssl taxonomy underscore user vpn vvv woocommerce WP-CLI wproundtable wp_query

Search

© 2016 Kellen Mace