Show one item per category of a custom post type

$args = array( ‘taxonomy’ => ‘portfolio_type’, ‘exclude’ => ‘28,30’, ); $tax = get_terms($args); foreach($tax as $t){ echo ‘<div class=”span3 produto-lista”>’; $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘portfolio_type’, ‘field’ => ‘slug’, ‘terms’ => array($t->slug) ) ), ‘posts_per_page’ => 1, ‘post_status’ => ‘publish’, ‘order’ => ‘DESC’, ); $query = new WP_Query( $args ); while … Read more

Custom Post-Type not in admin menu

Your capability type is not valid. I would remove the code below if you can. WordPress auto generates the capability_type. “capability_type” => array( strtolower($s), strtolower($m) ), Check out the documentation for capability_type. https://codex.wordpress.org/Function_Reference/register_post_type

What template files do I need to customise custom-category-term-links rather than fall back on archive.php?

Custom taxonomies have templates named taxonomy-something in this hierarchy: taxonomy-{taxonomy}-{term}.php taxonomy-{taxonomy}.php taxonomy.php archive.php index.php So, yes, if you have no taxonomy-custom-cat-term-cat.php, taxonomy-custom-cat.php or taxonomy.php then archive.php will be used. category-something.php will only be used for the built-in categories, if you are on a page showing posts from a category called “something.”