[resolved] Template for Custom Post type Category and Categories Gone (3 posts)

  1. rcvane
    Posted 3 years ago #

    Hello out there...

    I am hoping to find some help. I think I have 2 separate issues, but I'm not sure I should start 2 threads.

    1. I am trying to create a template for a Custom Post Type Category. The custom_category/category was functioning and I know it was using the archive.php. I thought I had it figured out and created an archive-custom_category.php, but that did not work. I've tried a few variations with no luck. Any thoughts on what the proper name would be?


    2. After reading in the codex that I may need to change the permalink structure to default and change it back to the postname, I did, none of the category pages seem to work anymore - neither the regular post category or the custom_category are pulling any results.
    Any thoughts on how I can fix this?

    This newb thanks you... :)

  2. Rachel Baker
    Posted 3 years ago #

    I would start by flushing your rewrite rules: http://codex.wordpress.org/Function_Reference/flush_rewrite_rules

    Then check to be sure you are using the correct template name (depending if you are using a category or custom taxonomy) http://codex.wordpress.org/Template_Hierarchy#Custom_Taxonomies_display

  3. rcvane
    Posted 3 years ago #

    Never in a million years thought someone I kinda knew in HS would answer me. But, I thank you very much! Finally figured it out. taxonomy-portfolio_category.php wins.

Topic Closed

This topic has been closed to new replies.

About this Topic