I have several fields in tags including text and image. Is it possible to pull these details and show them in single posts that are using the tag term? Thanks!
For example, I have these tags acf field:
– banner_logo
– publisher_name
– release_date
How can I show them in single posts that are using the tag?
You can Show this by using:
<?php
$tags = wp_get_post_tags(get_the_ID());
if ($tags) {
foreach ($tags as $tag) {
if ($tag->description) {
echo ‘<dt>term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $tag->name ) . ‘” ‘ . ‘>’ . $tag->name.’</dt><dd>’ . $tag->description . ‘</dd>’;
}
}
}
?>
Does not work unfortunately.