Hello, like the original poster, I have a custom post type, using a custom template, and would like to display the custom taxonomies attributed to each custom post, much like you can with ‘categories’ and ‘tags’.
I’ve tried the adding the above functions.php code, but the resulting shortcodes aren’t returning anything when the custom post is rendered. No errors, just an absence of any HTML whatsoever. Other shortcodes in the template seem to be working fine.
If I can get this to work, your plugin does everything I need it to!
For info the precise code I am using is:
function print_disciplines_func() {
$current_post_id = get_the_ID();
$all_tax = get_taxonomies(array( 'name' => 'disciplines' ));
$output = implode(', ', $all_tax);
return $output;
}
add_shortcode( 'discipline_list', 'print_disciplines_func' );
`
where ‘disciplines’ is the slug of my custom taxonomy.
Any ideas?