Support ForumAdding Featured Image to Tag and Category Archive – Support Forum https://support.ishyoboy.com/forums/topic/adding-featured-image-to-tag-and-category-archive/feed/ Wed, 08 May 2024 09:22:55 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/adding-featured-image-to-tag-and-category-archive/#post-1375 <![CDATA[Adding Featured Image to Tag and Category Archive]]> https://support.ishyoboy.com/forums/topic/adding-featured-image-to-tag-and-category-archive/#post-1375 Tue, 17 Dec 2013 21:11:27 +0000 johnnyspade I would like a post’s featured image to appear in the category and tag archive. I think I can wrap my head around adding it, if you can tell me what file I should add it to. I can see that archive.php is calling a template part but I got a bit lost from there.

]]>
https://support.ishyoboy.com/forums/topic/adding-featured-image-to-tag-and-category-archive/#post-1378 <![CDATA[Reply To: Adding Featured Image to Tag and Category Archive]]> https://support.ishyoboy.com/forums/topic/adding-featured-image-to-tag-and-category-archive/#post-1378 Wed, 18 Dec 2013 08:39:51 +0000 IshYoBoy Hey,

Sure! What you’ll need to edit are all “content-part-*” files. Currently they are being used both in “Blog Overview/Category/Archive” and “Single” which is the detail page.

you can use the is_category() and is_tag() functions the same way as we have used is_single().

Or you could also change the archive.php and istead of always loading the same “template files” create two IF clauses where one would be if ( is_category() || is_tag() ) and then create new file names for them. E.g. “tagcat-content-*”.

Hope it’s clear.
Feel free to get back to us if you need more explanation.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>