General Relation Tax 1 Tax 2 Tax 3 Tax 4 Tax 5 Overview Use this tool to create custom code for WordPress Tax Query with WP_Tax_Query class. Usage Fill in the user-friendly form. Click the “Update Code” button. Copy the code to your project. Or save it as a snippet and share with the community. Examples If you are still learning how to use this tool, check out the following examples: Single tax parameter Multiple tax parameters Nested tax parameters Query Variable Name The variable used in the code. Tax Relation Choose... AND (default) OR The MySQL keyword used to join the clauses of the query. Tax Type Tax Parameters Nested Tax Query Taxonomy Taxonomy being queried (e.g. category, post_format, movie). Operator Choose... AND IN (Default) NOT IN EXISTS NOT EXISTS MySQL operator used with terms in the WHERE clause Tax Query No save snippets... Select from your saved Tax Query snippets. Terms Term or terms to filter by. Single string or comma seperated. Include Children Choose... Yes - Default No Whether to include child terms, or not. Field Choose... term_id (Default) slug name term_taxonomy_id Field to match terms against. Tax Type Tax Parameters Nested Tax Query Taxonomy Taxonomy being queried (e.g. category, post_format, movie). Operator Choose... AND IN (Default) NOT IN EXISTS NOT EXISTS MySQL operator used with terms in the WHERE clause Tax Query No save snippets... Select from your saved Tax Query snippets. Terms Term or terms to filter by. Single string or comma seperated. Include Children Choose... Yes - Default No Whether to include child terms, or not. Field Choose... term_id (Default) slug name term_taxonomy_id Field to match terms against. Tax Type Tax Parameters Nested Tax Query Taxonomy Taxonomy being queried (e.g. category, post_format, movie). Operator Choose... AND IN (Default) NOT IN EXISTS NOT EXISTS MySQL operator used with terms in the WHERE clause Tax Query No save snippets... Select from your saved Tax Query snippets. Terms Term or terms to filter by. Single string or comma seperated. Include Children Choose... Yes - Default No Whether to include child terms, or not. Field Choose... term_id (Default) slug name term_taxonomy_id Field to match terms against. Tax Type Tax Parameters Nested Tax Query Taxonomy Taxonomy being queried (e.g. category, post_format, movie). Operator Choose... AND IN (Default) NOT IN EXISTS NOT EXISTS MySQL operator used with terms in the WHERE clause Tax Query No save snippets... Select from your saved Tax Query snippets. Terms Term or terms to filter by. Single string or comma seperated. Include Children Choose... Yes - Default No Whether to include child terms, or not. Field Choose... term_id (Default) slug name term_taxonomy_id Field to match terms against. Tax Type Tax Parameters Nested Tax Query Taxonomy Taxonomy being queried (e.g. category, post_format, movie). Operator Choose... AND IN (Default) NOT IN EXISTS NOT EXISTS MySQL operator used with terms in the WHERE clause Tax Query No save snippets... Select from your saved Tax Query snippets. Terms Term or terms to filter by. Single string or comma seperated. Include Children Choose... Yes - Default No Whether to include child terms, or not. Field Choose... term_id (Default) slug name term_taxonomy_id Field to match terms against. Update Code Save Snippet