Tagged: tag
This seems really obvious but I can’t figure out how to do it.
To be clear – not a tag cloud but the tags applied to a portfolio item.
Hi!
Your trying to add tags to a portfolio post? If you look right beneath the “Publish / Update” button there will be a section for adding tags to the post. If you do not see that then click on “Screen Options” in the top right hand corner of your screen and make sure the “Tags” option is checked to display.
Cheers!
Elliott
Hi Elliott,
I know where the input field to enter tags is but I don’t know how to add them to Avia Layout Builder. There is no Content Element that supports them.
Hi, squarelight.
It my help:
1) add to child function.php
// php in widget
add_filter('widget_text','sp_widget_execute_php',100);
function sp_widget_execute_php($text) {
if(strpos($text,'<?') !== false) {
ob_start();
eval('?>'.$text);
$text = ob_get_contents();
ob_end_clean();
}
return $text;
}
2) add custom widget area
3) add text widget with php code for tag:
<?php if(has_tag() && is_single() && !post_password_required())
{
echo '<span class="blog-tags minor-meta">';
the_tags('<strong>'.__('Tags:','avia_framework').'</strong><span> ');
echo '</span></span>';
}
?>
4) add widget with Avia Layout Builder
That worked! Thanks so much.