WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kevleitch
    Member
    Posted 6 months ago #

    Hi,

    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. WP Sites - Brad Dalton
    Member
    Posted 6 months 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
    Member
    Posted 6 months ago #

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

Reply

You must log in to post.

About this Topic