-
AuthorPosts
-
August 17, 2017 at 3:03 pm #840434
Hi guys and girls,
In topic https://kriesi.at/support/topic/show-tags-in-portfolio/ you explained me how I could show tags in portfolio with links to the corresponding tag archive.
As far as I know it worked properly before. However, now the tag links don’t link to the corresponding tag archive anymore.
I recently updated Enfold tolatest version. Could that perhaps have caused this problem?
How can I solve it in order to link the tags again to the corresponding link archive?
Thanks & regards,
MoniqueAugust 21, 2017 at 7:48 am #841890Hey Monique,
Thank you for using Enfold.
Please edit the shortcode, look for this line:
$the_tags = get_the_tags( $post->ID , 'portfolio_entries');Replace it with:
$the_tags = get_the_tags( $post->ID );Best regards,
IsmaelAugust 23, 2017 at 4:53 pm #843174Hi Ismael,
Thank you for your reply.
Sorry to say that after changing the code the tag links still don’t link to the tag archive.
Any other solution for this please?
Regards,
MoniqueAugust 24, 2017 at 1:08 pm #843466Hi,
Please post the login details in the private field. We would like to check it.
Best regards,
IsmaelAugust 25, 2017 at 2:21 pm #843960Hi Ismael,
Please find below.
Regards,
MoniqueAugust 26, 2017 at 7:00 am #844299Hi,
Thank you for the update. We modified the code in the functions.php file. Please remove browser cache before checking the page.
function avs_show_portfolio_tags_func() { global $post; $the_tags = get_the_tags( $post->ID ); $output = ''; foreach($the_tags as $tag) { $taglink = get_tag_link($tag->term_id); $output .= '<span class="portfolio_tag"><a href='.$taglink.'>'.$tag->name.' </a></span>'; } return $output; } add_shortcode('portfolio_tags', 'avs_show_portfolio_tags_func');Best regards,
IsmaelAugust 28, 2017 at 9:44 am #844739Hi Ismael,
Wow great! Thanks a lot!
Can you flag this topic as closed please?
Regards,
MoniqueAugust 29, 2017 at 6:33 am #845208 -
AuthorPosts
- The topic ‘Tags in portfolio don't link to corresponding tag archive’ is closed to new replies.
