Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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!

    #1075833

    Hey 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,
    Rikard

    #1075849

    What 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 …

    #1076260

    Any idea?

    #1077473

    Hi Xevi_o,

    Please refer to the solution posted here
    https://kriesi.at/support/topic/show-tags-in-portfolio/#post-813872

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1077760

    Hi, 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?

    #1078365

    Hi 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,
    Victoria

    #1078599

    Thanks, 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 …

    #1079916

    Hi 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,
    Nikko

    #1079967

    Hi, Nikko,

    Yes yes yes!
    Now, everything works perfectly.

    You can already close this thread.

    Thank you very much!

    #1079974

    Hi Xevi_o,

    Glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Portfolio Tags’ is closed to new replies.