Forums

pretty permalinks break custom categories (2 posts)

  1. WPMaverick
    Member
    Posted 4 years ago #

    I'm using multiple custom category pages like category-6.php etc. to display top-level categories. Other categories go in the standard category.php.

    Now, as long as I am in default permalink structure (http://mysite.com/?cat=8) everything works fine. But the moment I switch to pretty permalinks (http://mysite.com/category/some-category/) I get a 404 page. everything else, (header.php) (sidebar.php) (footer.php) all load and display fine. the only problem is that instead of the category pages (category.php / category-n.php) I get a 404 page.

    The moment I switch back to default permalinks, all becomes ok again.

    Please help !!!!!

  2. JaneLitte
    Member
    Posted 4 years ago #

    Since you only have one custom category, you could do this - add

    <?php
    /*
    Template Name: Special Category
    */   
    
    ?>

    at the top of the category page and then go create a page based on the template.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.