Hi,
I need to get_the_term_list and the icon. I can't find how to get de icon.
Know I use this code in the single.php
<?php echo get_the_term_list( $post->ID, 'post_tag', '<p>Servicios: ', ', ', '</p>');?>
Thanks!
Hello,
I suggest you try with a taxonomy view, for example:
1) Dashboard-> Toolset-> Settings-> General
in section "Editing experience", enable option "Show both the legacy and Blocks interface and let me choose which to use for each item I build"
2) Dashboard-> Toolset-> Views, create a new taxonomy view:
- Query Tag terms
- Filter by:
Taxonomy is set by the page where this View is inserted
- In views loop, display the custom taxonomy field "icon"
3) In your custom PHP codes, use render_view() function to display above taxonomy view:
https://toolset.com/documentation/programmer-reference/views-api/#render_view
Hi,
I don't see this option:
1) Dashboard-> Toolset-> Settings-> General
How I get the icon image?
<?php
$tags = get_the_tags($post->ID);
if ($tags) {
foreach( $tags as $tag ) {
echo'<ul class="list-group">';
echo '<li class="list-group-item">'.$tag->name.'';
echo'';
}
}
?>
Thanks
You need to install Toolset Blocks plugin, and you can download it here:
https://toolset.com/account/downloads/