Register Taxonomy – What is `query_var`?

It is explained pretty thoroughly in the Codex, in my opinion. It serves a purpose e.g. when you want to grab posts for your taxonomy, it is a URL slug for your taxonomy, e.g. example.com/tag/cats -> example.com/query_var/cats. Note: The query_var is used for direct queries through WP_Query like new WP_Query( array( ‘people’ => $person_name ) … Read more