Tagged: Tags
-
AuthorPosts
-
July 8, 2015 at 10:56 am #470116
Dear Kriesi,
How can I display the tags I have asigned to portfolio posts on my website?
I would like to display tags on a portfolio post, so that they act as cross links to other related items.
So, on a portfolio post for a sculpture I can display as buttons / links:
sculpture (24), stone (8), outdoors (3) etc.Thanks, Richard
July 8, 2015 at 6:48 pm #470466Hi Richard!
Your portfolio posts should already be displaying tags that they have been assigned to at the bottom of the post.
You mean your wanting to display all tags? You could use the “Tag Cloud” widget in a sidebar or in the “Widget Area” element.
Regards,
ElliottJuly 8, 2015 at 10:01 pm #470560Thanks Kriesi,
Unfortunately the tags are not showing up at all on my portfolio posts. I’m including a link to an example.
I have added the tag cloud in the right hand column via the widgets, and this looks good, but it shows all tags used in the site. I want to display just the tags I have assigned to the post.
Thanks, Richard
July 9, 2015 at 4:26 pm #470983Hi!
Your probably using the advanced layout builder for that post. If you want the regular tags to display then you’ll want to switch to the default editor.
If you want to keep using the advanced layout builder there and display only tags assigned to the post then the code would look like this.
echo '<span class="blog-tags minor-meta">'; the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> '); echo '</span></span>';
I suppose you could use a plugin to execute PHP in a text widget for that, https://wordpress.org/plugins/exec-php/.
Or just type the tags out manually.
Regards,
Elliott- This reply was modified 9 years, 4 months ago by Elliott.
September 25, 2015 at 10:45 am #508892Hi Elliott,
I would like to display portfolio post tags as buttons (or labels) at the end of my portfolio post page.
I am using the Advanced layout editor and tried to use the code block without success.Is there a way to add it in a code block or should I edit a php file from the template ? If yes which one. I use a theme child, does it make a difference ?
Thank you for your help, Xavier
September 26, 2015 at 4:09 pm #509538Hey!
Try adding it right above line 31 in the /enfold/single-portfolio.php file.
<!--end content--> </main>
Regards,
ElliottSeptember 26, 2015 at 5:17 pm #509544You mean adding this?
—–
echo ‘<span class=”blog-tags minor-meta”>’;
the_tags(‘‘.__(‘Tags:’,’avia_framework’).’<span> ‘);
echo ‘</span></span>’;
—–I have tried this, but tags don’t show.
See a link below for a portfolio item where I have added some tagsThanks, Richard
September 27, 2015 at 4:08 pm #509702Hey!
Send us a WordPress login please.
Best regards,
Elliott- This reply was modified 9 years, 1 month ago by Elliott.
September 27, 2015 at 4:45 pm #509708Hi Elliott,
I Tried to add the code in the “single-portfolio.php” page but nothing appears.Thanks for your help,
XavierSeptember 27, 2015 at 4:48 pm #509710Thanks Kriesi, what email should I use for your login?
September 28, 2015 at 7:01 am #509822Hi Richard,
You can use any email, we just need the username and password :)
Best regards,
RikardOctober 1, 2015 at 9:10 am #512008Hello guys,
Can you help me please help me to do the same thing as richard or tell me what code to use in my portfolio pst ?Thanks for the help.
XavierOctober 2, 2015 at 5:16 am #512524 -
AuthorPosts
- You must be logged in to reply to this topic.