Hi Tom,
Thanks for your answer!
I just realised it’s not on a custom post type I’d like to set the columns feature, but on a custom taxonomy (equivalent in default blog: tags).
I’m wondering if then this is possible.
The taxonomy ID is ‘alergens’ and I’ve tried:
add_filter( 'generate_blog_columns','tu_alergens_columns' );
function tu_alergens_columns( $columns )
{
if ( is_taxonomy_type_archive( 'alergens' ) ) :
return true;
endif;
return $columns;
}
But this gives a fatal error “Fatal error: Uncaught Error: Call to undefined function is_taxonomy_type_archive() …”.
add_filter( 'generate_blog_columns','tu_alergens_columns' );
function tu_alergens_columns( $columns )
{
if ( is_product_type_archive( 'alergens' ) ) :
return true;
endif;
return $columns;
}
Doesn’t work neither.
Would appreciate any clue on this π