
-
AuthorPosts
-
February 11, 2014 at 1:00 am #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 11 years, 5 months ago by
tck.
February 11, 2014 at 5:44 pm #222318I 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.
February 14, 2014 at 3:45 pm #224024Hi!
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,
DevinFebruary 14, 2014 at 5:40 pm #224074Hi!
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,
PeterFebruary 14, 2014 at 5:53 pm #224087Peter,
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!
February 14, 2014 at 8:19 pm #224135You can modify the same file in the child theme as its in the root folder and will replace whats in the parent.
March 26, 2014 at 1:58 pm #243336Hello,
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.phpBut nothing is shown, must i insert a code at the end of the description in my portfolio ?
ThxMarch 28, 2014 at 9:33 am #244262Hi!
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,
PeterMarch 28, 2014 at 11:03 am #244279sorry 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 ?
ThanksMarch 28, 2014 at 11:21 am #244286Hey!
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!
PeterMarch 28, 2014 at 11:32 am #244294Sorry but it’s not working 100%,
look : http://www.whynotprod.com/accueil/
I only have the non-cliquable links…April 1, 2014 at 4:45 pm #246133April 2, 2014 at 10:07 am #246449Hey!
I changed the code a bit – please try it again.
Best regards,
PeterApril 2, 2014 at 11:00 am #246475Hiiiihaaa !!!
Great THX :) -
This topic was modified 11 years, 5 months ago by
-
AuthorPosts
- The topic ‘Portfolio Tags Not Displaying’ is closed to new replies.