WordPress.org

Support

Support » Themes and Templates » Origin » [Resolved] category.php is being ignored

[Resolved] category.php is being ignored

  • 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Griden

    @griden

    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).

    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.

    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…

    Theme Author Griden

    @griden

    @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).

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] category.php is being ignored’ is closed to new replies.
Skip to toolbar