[resolved] Creating a custom Category page for a custom taxonomy (3 posts)

  1. kevleitch
    Posted 2 years ago #


    I currently have a Custom Post type (called directory) which I've registered a custom taxonomy with (called directory_category).

    As I understand it, I should be able to create a template called taxonomy-directory_category.php and have the posts associated with the selected category item appear in that page.

    This isn't happening. If I click on one of the custom categories link, I get a 404.

    Am I missing something obvious here?

    Thanks for any help.

  2. Brad Dalton
    Posted 2 years ago #

    Did you resave your Permalinks after registering the taxonomy?

    I wouldn't use category in the name of the taxonomy either.

    Read this http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

  3. kevleitch
    Posted 2 years ago #

    You were right, I resaved the taxonomy with a new name, dropping the word 'category' and it works perfectly. Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic