I have created a custom post type named 'portfolio' and assigned the default 'post_tag' taxonomy to it.
In single-portfolio.php template I'm using the following code to view each post's tags:
echo get_the_tag_list('<p class="tag_list"><strong>Tags: </strong>',', ','</p>');
The problem is that the link of each tag is not correct and finally redirects into a 404 page.
The link that
get_the_tag_list() returns looks like:
but in order to work properly it should be something like:
Any suggestions on how to fix this??
Note: I have also tried get_the_term_list() function but it works the same way...