I have this is my functions.php
file to create tags only for custom post type called 'image-gallery':
register_taxonomy(
'image-gallery_tags',
'image-gallery',
array(
'label' => __( 'Image Tags' ),
'rewrite' => false,
'hierarchical' => false,
'capabilities' => array( 'edit_terms' => 'manage_categories' )
)
);
But I can't get the list of tags to show in the post loop on the front end. I have tried get_the_tags();
and get_the_tag_list();
but they will only show tags which are generic to all posts, not the tags for the custom post type. Any help?