
-
AuthorPosts
-
March 6, 2019 at 12:09 pm #1075470
Hello!
It’s my first question here, and you’ll forgive me, because I’ve already seen that the issue has been wondering in other posts, but I have not just gotten it out.
What I am looking for is the way to make the labels appear at the bottom of the Portfolio pages.
I’m using Avia, the advanced editor.
Thanks!
March 7, 2019 at 8:02 am #1075833Hey Xevi_o,
Welcome to the support forum :-)
Could you post a link to where we can see the results you are getting please?
Best regards,
RikardMarch 7, 2019 at 8:31 am #1075849What I have is that the tags associated with a portfolio item are not visible.
I have already read other posts, and I know it’s a problem that is working with the Avia.
But I have not seen how to solve it …
March 8, 2019 at 8:49 am #1076260Any idea?
March 11, 2019 at 9:09 pm #1077473Hi Xevi_o,
Please refer to the solution posted here
https://kriesi.at/support/topic/show-tags-in-portfolio/#post-813872If you need further assistance please let us know.
Best regards,
VictoriaMarch 12, 2019 at 10:26 am #1077760Hi, Victoria,
Thank you so much, I’ve tried it and it works perfectly.
Just one more question.
With this code the tags are side by side, and I would like them to be separated by a comma.
That, in fact, is the way they look in the portfolio elements that are published with the classic publisher.
How could i do?
March 13, 2019 at 8:00 pm #1078365Hi Xevi_o,
Please try the code like this:
function show_portfolio_tags_func() { global $post; $the_tags = get_the_tags( $post->ID , 'portfolio_entries'); $output = ''; foreach($the_tags as $tag) { $taglink = get_tag_link($tag->tag_id); $output .= '<span class="portfolio_tag"><a href='.$taglink.'>'.$tag->name.', </a></span>'; } return $output; } add_shortcode('portfolio_tags', 'show_portfolio_tags_func');
Best regards,
VictoriaMarch 14, 2019 at 9:09 am #1078599Thanks, Victoria,
I have tried it, and indeed, the commas now come out.
But what I see now is that the tags, when I click, do not link anywhere …
March 18, 2019 at 3:31 pm #1079916Hi Xevi_o,
Can you try to replace it with this code:
function show_portfolio_tags_func() { global $post; $the_tags = get_the_tags( $post->ID , 'portfolio_entries'); $output = ''; $i = 1; $length = count($the_tags); foreach($the_tags as $tag) { $taglink = get_tag_link($tag->term_id); $output .= '<span class="portfolio_tag"><a href='.$taglink.'>'.$tag->name.'</a></span>'; if( $i !== $length ) { $output .= ', '; } $i++; } return $output; } add_shortcode('portfolio_tags', 'show_portfolio_tags_func');
Best regards,
NikkoMarch 18, 2019 at 4:42 pm #1079967Hi, Nikko,
Yes yes yes!
Now, everything works perfectly.You can already close this thread.
Thank you very much!
March 18, 2019 at 5:01 pm #1079974Hi Xevi_o,
Glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Portfolio Tags’ is closed to new replies.