Tagged: ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #221956

    Hello,

    On one of the first portfolio entries I did, it listed the tags at the bottom, and it still has those tags. The latest portfolio entries aren’t displaying the tags. How can I get those to display on all portfolio items?

    Thanks for your help.

    • This topic was modified 10 months, 2 weeks ago by  tck.
    #222318

    I have figured out more details on the Portfolio Tags. It seems that when I use the default editor, the tags will show up at the bottom of the post. When I use the Advanced Layout Editor, it removes the tags. How can I get the Tags to display on Portfolios when I use the Advanced Layout Editor?

    Thanks.

    #224024

    Hi!

    I’m not sure if this is easily doable or not. When you use the Avia Layout Builder the entire page contents and the template used is different. So when you use the portfolio visual editor it ends up using includes>loop-portfolio.php which has a tag output in that structure.

    With the ALB, the idea is that it lets you completely do your own layout so there are no automatically generated items for any one specific page type.

    I’ve tagged Kriesi on the topic since it may need a new builder element if that is doable in this instance.

    Best regards,
    Devin

    #224074

    Hi!

    For now you can add the tags to the dynamic template builder template. Open up wp-content/themes/enfold/template-builder.php and replace

    
    	echo $content;
    

    with

    
    	echo $content;
    
        if(has_tag() && is_single())
        {
            echo '<span class="blog-tags minor-meta">';
            the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> ');
            echo '</span></span>';
        }
    

    Regards,
    Peter

    #224087

    Peter,

    That worked, but you said, “for now.” To confirm, does that mean you’re still looking for a permanent solution?

    If this turns into the permanent solution, is there a way to get that on the child theme in case I update the template?

    Thanks for your help!

    #224135

    You can modify the same file in the child theme as its in the root folder and will replace whats in the parent.

    #243336

    Hello,
    i want to add tags at the bottom of my portfolio description.
    – i enter tags (in the right column)
    – i follow and add you’re code in template-builder.php

    But nothing is shown, must i insert a code at the end of the description in my portfolio ?
    Thx

    #244262

    Hi!

    Single portfolio pages support tags out of the box and you just need to add the tags on the admin page. The tag code can be found in wp-content/themes/enfold/includes/loop-portfolio-single.php:

    
    				if(has_tag() && is_single())
    				{
    					echo '<span class="blog-tags minor-meta">';
    					the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> ');
    					echo '</span></span>';
    				}
    

    The template-builder.php is just required for dynamic templates.

    Best regards,
    Peter

    #244279

    sorry but i don’t understand…
    – i add tags on the admin page (under “Tags”)
    – i found the code, it’s the same
    and now what can i do with this code ?
    I use Ajax portfolio, tags are working with this kind of portfolio ?
    Thanks

    #244286

    Hey!

    If you want to add the tags to the ajax preview open up wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php and replace:

    
    						$output .= "<div class='entry-content-wrapper entry-content' ".avia_markup_helper(array('context' => 'entry_content','echo'=>false)).">";
    						$output .= $content;
    

    with

    
    						$output .= "<div class='entry-content-wrapper entry-content' ".avia_markup_helper(array('context' => 'entry_content','echo'=>false)).">";
    						$output .= $content;
    
                            $posttags = get_the_tags($id);
                            if(!empty($posttags))
                            {
                                $taglinks = array();
                                foreach($posttags as $tag)
                                {
                                    $taglinks[] = '<a href="'. get_tag_link($tag->term_id) .'">'. $tag->name .'</a>';
                                }
    
                                if(!empty($taglinks))
                                {
                                    $taglinks = implode(",", $taglinks);
                                    $output .=  $taglinks;
                                }
                            }
    

    Cheers!
    Peter

    #244294

    Sorry but it’s not working 100%,
    look : http://www.whynotprod.com/accueil/
    I only have the non-cliquable links…

    #246133
    #246449

    Hey!

    I changed the code a bit – please try it again.

    Best regards,
    Peter

    #246475

    Hiiiihaaa !!!
    Great THX :)

Viewing 14 posts - 1 through 14 (of 14 total)

The topic ‘Portfolio Tags Not Displaying’ is closed to new replies.