Why doesn’t a custom post type permalink ever hit index.php

Your Custom Post Type is using the single.php and (most likely) archive.php templates. A single CPT post looks for templates in this order: single-{post_type}.php – If the post type were product, WordPress would look for single-product.php single.php index.php Other CPT pages look for templates in this order: taxonomy-{taxonomy}-{slug}.php taxonomy-{taxonomy}.php – If the taxonomy were sometax, … Read more

wp_list_categories() – current-cat class also inside posts?

Yes off course. You just need to get the term id and put it on the args. Check wp_list_categories() function wr_list_taxonomy($taxonomy, $orderby, $hierarchical, $cat_id) { $show_count = 0; $pad_counts = 0; $title=””; $cat_id = 0; $args = array( ‘taxonomy’ => $taxonomy, ‘orderby’ => $orderby, ‘show_count’ => $show_count, ‘pad_counts’ => $pad_counts, ‘hierarchical’ => $hierarchical, ‘title_li’ => … Read more

forming WP_Query for posts of all post types but from specific categories

According to the codex category_name only takes one string value. category_in accepts an array of category IDs: <?php $args = array( ‘category__in’ = array(1,4,6,8), // use IDs ‘post_type’=> array( $ptype, ‘post’, ‘test-btum’, ‘test-other’ ) ); $wp_query = new WP_Query($args); ?> It might be possible that the default category taxonomy is not registered to your custom … Read more