WordPress.org

Ready to get started?Download WordPress

Forums

Custom image area for /tag/ pages. (2 posts)

  1. cusinndzl
    Member
    Posted 2 years 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.

  2. Max
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic