WordPress.org

Ready to get started?Download WordPress

Forums

Origin
[resolved] category.php is being ignored (6 posts)

  1. simbelsim
    Member
    Posted 1 year ago #

    I'm using a child theme for the Origin theme and created a category.php Category template copying it from archive.php, however it is being ignored by WordPress even when the code is identical to the Archive template.

    To make sure there were no errors in the Category template page, I made the two templates identical and tested by temporarily removing the footer from either template - it affects category pages when I remove it from archive.php, and nothing happens when I remove it from category.php.

    This suggests that there is no error in the loop and it may be something to do with how the theme looks for page templates (?).

    Also, because Origin doesn't come with a category.php, I tried including one in the parent theme folder and this didn't fix anything.

    Deactivating all plugins did nothing, so there is no interference there. All my other child theme files are working as expected.

    Any help appreciated!

  2. Griden
    Member
    Theme Author

    Posted 1 year ago #

    You need to name the file taxonomy-category.php. If it's for a specific category, use taxonomy-category-blog.php (replace 'blog' with your category slug).

  3. lukodp
    Member
    Posted 1 year ago #

    Same problem here. After update from 3.5 to 3.5.1, category.php and archive.php is ignored. I'm running test sites locally with WPMS.
    Any ideas?
    Renaming to taxonomy-category.php didn't work.

    P.S. I'm having same theme with same files in other WP 3.5 installation and it's working fine, so this is obviously WP issue.

  4. lukodp
    Member
    Posted 1 year ago #

    OK, I solved it. Just change permalinks structure to something else and after refreshing it worked. In fact I returned permalinks to what's was before and still working...

  5. Griden
    Member
    Theme Author

    Posted 1 year ago #

    @lukodp: the above template naming is specific to this theme/framework. Your issue is irrelevant if you don't use Origin or some of the other Hybrid themes here (there are quite a few).

  6. simbelsim
    Member
    Posted 1 year ago #

    Brilliant, I can confirm that the renaming worked! Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic