Custom post taxonomies as tax_query terms?

There is an example of how to do this on the official doc for WP_Query: https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters Specifically, by declaring multiple items in the tax_query and setting their relation: Display posts that are in the quotes category OR have the quote post format: $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( ‘relation’ => ‘OR’, array( … Read more

Shortcodes not working in category or tag description

You entered the quotation marks wrong, I fixed it, maybe it will help: add_filter( ‘term_description’, ‘do_shortcode’ ); add_filter( ‘category_description’, ‘do_shortcode’ ); add_filter( ‘post_tag_description’, ‘do_shortcode’ ); function my_shortcode() { ob_start(); require_once(get_template_directory() . ‘/html/htmlcontent.php’); $content = ob_get_contents(); ob_end_clean(); return $content; } add_shortcode(“shortcode”,”my_shortcode”);

Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?

If your taxonomy is non-hierarchical like tags, change value of input to $term->name. Took me a while to figure it out. It’s crazy but wordpress handle non-hierarchical taxonomies by their name in forms and not ids. echo “<input type=”radio” id=’in-$id’ name=”{$name}””.checked($current,$term->term_id,false).”value=”$term->name” />$term->name<br />”;