WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom Post Type and Taxonomy Displays Homepage (3 posts)

  1. Brian DiChiara
    Member
    Posted 2 years ago #

    I've created a custom post type and custom taxonomy and they work fine in the admin, the URLs appear to be correct, however whenever I try to view one, or an archive, or a category archive, I see the homepage:

    https://gist.github.com/3932136

    I've tried to use twentyeleven to see if my theme was conflicting, but it makes no difference which theme is used. Also, this could be the same issue, but there are no body classes signifying that i'm looking at a custom post type. It's not a 404 error, it just displays the Static Front page template. What am I doing wrong?

    Additionally, my taxonomy also doesn't show up in the Appearance > Menus page. It's missing the box so I can't add the categories to any menus.

  2. Brian DiChiara
    Member
    Posted 2 years ago #

    It was brought to my attention that my CPT and Taxonomy registration was inside an "is_admin" condition. Moving it outside of that seems to have fixed the issue.

  3. Brian DiChiara
    Member
    Posted 2 years ago #

    The taxonomy issue was resolved by checking the box next to my taxonomy in the Screen Options under Appearance > Menus

Topic Closed

This topic has been closed to new replies.

About this Topic