WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Images
where do u add the code? (2 posts)

  1. slaughts
    Member
    Posted 6 months ago #

    Hi.
    Awesome plugin luv the idea!

    Im wanting to display the image on the post page, iv added the code to the single.php page, but nothing is showing up. the post has the tag associated with it and iv added an image to that tag. PLEAS HELP!

    $image_url = apply_filters( 'taxonomy-images-queried-term-image-url', '' );
    echo $image_url;

    https://wordpress.org/plugins/taxonomy-images/

  2. EliasNS
    Member
    Posted 6 months ago #

    As you can see in the Home of the plugin:

    This filter only works in views that naturally use templates like category.php, tag.php taxonomy.php and all of their derivatives

    and not in single.php.

    I think you should use on of the other filters explained there.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.