WordPress.org

Ready to get started?Download WordPress

Forums

How to create tag template for custom post type (2 posts)

  1. lakimathan
    Member
    Posted 1 year ago #

    Hi Friends,

    "How to create tag template for custom post type". I want to create tags archive for custom post called "portfolio". I created tag.php but it shows only list from the default wordpress posts but i want to display posts from custom post type.

    Pls anyone help its urgent friends... Thanqs in advance...

  2. emeract
    Member
    Posted 1 year ago #

    Hi lakimathan,

    If you refer to Template hierarchy in the WP Codex, you'll see a description of the Custom Taxonomies display.

    For me, a template file named taxonomy-tags.php worked perfectly for my custom post type tags.

Topic Closed

This topic has been closed to new replies.

About this Topic