Support » Themes and Templates » Custom image area for /tag/ pages.
4 years, 9 months ago
I’ve been searching around but haven’t been able to find out how to setup a custom template for specific tags.
If you don’t know what I’m talking about a lot of blogs example1, example2 have setup their themes so if you go to example.com/tag/WordPress it’ll show for example a WordPress logo on the tag page.
I’d like some information on how I can setup something similar with my WordPress site.
You just want to make a custom template for a specific tag, just create a template with the name:
tag-$slug.php where $slug is the slug of the tag you are wanting to target with that template, or tag-$id.php where $id is the id of the tag you are wanting to target.
You may also find the template hierarchy codex page useful: Template Hierarchy