GeneralRelationTax 1Tax 2Tax 3Tax 4Tax 5OverviewUse this tool to create custom code for WordPress Tax Query with WP_Tax_Query class.UsageFill 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.ExamplesIf you are still learning how to use this tool, check out the following examples:Single tax parameterMultiple tax parametersNested tax parametersQuery 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 QueryTaxonomy Taxonomy being queried (e.g. category, post_format, movie).Operator Choose...ANDIN (Default)NOT INEXISTSNOT EXISTS MySQL operator used with terms in the WHERE clauseTax 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 - DefaultNo Whether to include child terms, or not.Field Choose...term_id (Default)slugnameterm_taxonomy_id Field to match terms against.Tax Type Tax Parameters Nested Tax QueryTaxonomy Taxonomy being queried (e.g. category, post_format, movie).Operator Choose...ANDIN (Default)NOT INEXISTSNOT EXISTS MySQL operator used with terms in the WHERE clauseTax 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 - DefaultNo Whether to include child terms, or not.Field Choose...term_id (Default)slugnameterm_taxonomy_id Field to match terms against.Tax Type Tax Parameters Nested Tax QueryTaxonomy Taxonomy being queried (e.g. category, post_format, movie).Operator Choose...ANDIN (Default)NOT INEXISTSNOT EXISTS MySQL operator used with terms in the WHERE clauseTax 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 - DefaultNo Whether to include child terms, or not.Field Choose...term_id (Default)slugnameterm_taxonomy_id Field to match terms against.Tax Type Tax Parameters Nested Tax QueryTaxonomy Taxonomy being queried (e.g. category, post_format, movie).Operator Choose...ANDIN (Default)NOT INEXISTSNOT EXISTS MySQL operator used with terms in the WHERE clauseTax 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 - DefaultNo Whether to include child terms, or not.Field Choose...term_id (Default)slugnameterm_taxonomy_id Field to match terms against.Tax Type Tax Parameters Nested Tax QueryTaxonomy Taxonomy being queried (e.g. category, post_format, movie).Operator Choose...ANDIN (Default)NOT INEXISTSNOT EXISTS MySQL operator used with terms in the WHERE clauseTax 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 - DefaultNo Whether to include child terms, or not.Field Choose...term_id (Default)slugnameterm_taxonomy_id Field to match terms against. Update Code Save Snippet