Title: custom taxonomy
Last modified: August 21, 2016

---

# custom taxonomy

 *  Resolved [rentler](https://wordpress.org/support/users/rentler/)
 * (@rentler)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-15/)
 * Hi,
 * I have the premium version and I’m trying to filter the posts by a custom taxonomy.
   I’ve seen it’s possible to use “tax_query”, but I was not able to understand 
   your exemple. May you help me: the custom taxonomy I created is “type” and the
   slug I want to use is “serie”. Thanks a lot. Ronaldo
 * PS.: I tryied to use the contact form on your website, but it didn’t work.
 * [http://wordpress.org/plugins/tpg-get-posts/](http://wordpress.org/plugins/tpg-get-posts/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * (@cswaim)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-15/#post-4521999)
 * My hosting service has been changing their network and the site has been up and
   down. The contact page is working now. Thanks for the heads up.
 * Tax_query:
 * from the codex on [wp_query](http://codex.wordpress.org/Class_Reference/WP_Query),
   the format of the taxonomy query is
 *     ```
       'tax_query' => array(
       		array(
       			'taxonomy' => 'people',
       			'field' => 'slug',
       			'terms' => 'bob'
       		)
       ```
   
 * To create this structure to pass as a parameter through the plugin, use:
 *     ```
       tax_query='{"taxonomy":"type","field":"slug","terms":("value1","value2")}'
       ```
   
 * if you are testing more complex taxonomy, then the relation option is required
   and each taxonomy must be created as a separate array, which is what the example
   is trying to show.

Viewing 1 replies (of 1 total)

The topic ‘custom taxonomy’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tpg-get-posts_dfefe0.svg)
 * [TPG Get Posts](https://wordpress.org/plugins/tpg-get-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tpg-get-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tpg-get-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/tpg-get-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tpg-get-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tpg-get-posts/reviews/)

## Tags

 * [custom taxonomy](https://wordpress.org/support/topic-tag/custom-taxonomy/)
 * [slug](https://wordpress.org/support/topic-tag/slug/)
 * [tax_query](https://wordpress.org/support/topic-tag/tax_query/)

 * 1 reply
 * 2 participants
 * Last reply from: [Criss Swaim](https://wordpress.org/support/users/cswaim/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/custom-taxonomy-15/#post-4521999)
 * Status: resolved