WordPress.org

Ready to get started?Download WordPress

Forums

Categories Images
[resolved] Tag images don't show (3 posts)

  1. dcernuta
    Member
    Posted 1 year ago #

    Hello!

    I tried using the same code as for categories for tags but it doesn't work on tags (it works on categories). z_taxonomy_image_url does not return anything, do I need to use it some other way?

    Here is how I use it:

    (this code goes within tag.php (listing of posts tagged with specific tag)

    <?php echo function_exists('z_taxonomy_image_url') && z_taxonomy_image_url() ? z_taxonomy_image_url() : bloginfo( 'template_directory' ) . '/images/no-thumb.png'; ?>

    Thank you for your help in advance.

    Best regards,
    David

    http://wordpress.org/extend/plugins/categories-images/

  2. Muhammad
    Member
    Plugin Author

    Posted 1 year ago #

    Really sorry for my late reply.

    You can use the example of looping for taxonomies and just replace 'your_taxonomy' with 'post_tag' and it should work fine

    hope I helped

  3. matchboxben
    Member
    Posted 2 months ago #

    I've been trying for days to get tag pages to show the associated featured images - and nothing works. Could you post me the code snippet needed to display a tag's featured image on tag.php?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.