• Hello – looking for a way to add featured images to tag archive pages. featured images work in post, page, and category pages but no plugin that claims to add them to tag archive page actually does it. I feel like something is missing. Any ideas? And thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there!

    What plugins have you tried so far? I’m curious to know if at least one of those might have a filter you could possibly hook to in order to expand on that

    Thread Starter donkeydigest

    (@donkeydigest)

    Jose – thank you replying. One of these (the third one) has code to insert into the tag archive page — but the theme I’m using doesn’t have a tag.php or tag.html file. Hm.

    Simple Featured Image
    Default featured image
    Categories Images

    Moderator bcworkz

    (@bcworkz)

    If your theme has no tag specific archive template, it’s using either the archive template or the default index template, which are used for more than taxonomy term requests. The template code you add could conditionally execute only for certain request types.

    if ( is_tag()) {
      // offered featured image template code here
    }

    Or you could make a copy of what template is used and name it tag.php (tag.html for block themes). Insert the offered featured image code into this new template.

    When you add custom templates to a theme, it’s best to do so via a child theme.

    Thread Starter donkeydigest

    (@donkeydigest)

    Hey everyone. Thanks for your replies. Still searching for the best option. But the search is part of the fun, right?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured image for tag archive pages’ is closed to new replies.