• I’m tearing my hair out.
    I’m developing a site with a custom theme, derived from the Bones theme (not a child theme, a modification)
    The problem is I cannot get clean (%postname%) permalinks to work on pages or posts– I get 404s. Oddly enough they do work for the Custom Post Types and Taxonomies I’ve set up.

    I have tried everything, deleting the .htaccess, adding things manually, uninstalling all the plugins, and finally finally came to the conclusion that it is something in the theme. Switching to twentyeleven or twentytwelve restores the permalink functionality.

    Buy I have no clue what in my theme could be interfering with this. I have not expressly set anything on permalinks on the theme or functions. Any clues as to where in the theme I can look?

Viewing 2 replies - 1 through 2 (of 2 total)
  • If the site works with the default permalink setting (that page id URL), then the most likely solution is that your .htaccess file isn’t writable. Make sure that your permissions are set correctly on the .htaccess.

    Thread Starter kemie

    (@kemie)

    Thanks! That wasn’t it, since permalinks did work with the default theme. I finally found the culprit. When registering my CPT I used the line

    'rewrite' => array('slug' => ''),

    commenting it out made my permalinks work again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme is breaking permalinks’ is closed to new replies.