Custom Post Type and Custom Taxonomy not connected

What is your Custom Taxonomy name? Try the following code, replace taxonomy_name with whatever your actual taxonomy name is. $args = array( ‘suppress_filters’ => false, ‘numberposts’ => -1, ‘post_type’ => ‘resource’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘taxonomy_name’, ‘field’ => ‘slug’, //Select taxonomy term by slug( you can also use name/id) ‘terms’ => ‘term-slug/category -slug’, … Read more

Query pages by child term

What do you mean by “dynamic” ? Do you want it to work with different posts? If so, that’s simple. Before your get_posts query function, get page terms, and pass them to your array. You can get taxonomies with <?php get_the_terms( $yourpostid, ‘your_custom_taxonomy’); ?>

Post Class for Custom Taxonomy Error

As a quick fix I looped through each custom taxonomy type. if ( ! function_exists(‘custom_taxonomy_class’) ) { function custom_taxonomy_class($classes, $class, $ID) { $args = array( ‘public’ => true, ‘_builtin’ => false ); $output=”names”; // or objects $operator=”and”; // ‘and’ or ‘or’ $taxonomies = get_taxonomies( $args, $output, $operator ); foreach ($taxonomies as $key) { $terms = … Read more