• Resolved tictok

    (@tictok)


    Hi – hope you can help.

    Recently (post 3.1 upgrade) it appears all of my top level pages have stop working.
    This applies to either static pages as well asa categories.
    I receive a 404 page not found for any top level page.

    However any child/subpage works. A top level page that wasn’t working suddenly works if I make it child of another page.

    The only way I can remedy this is to use Default permalinks which are ugly and aren’t very helpful.

    I’ve tried all the tricks I can think of (deleting htaccess, reseting permalinks, removing all plugins, changing themes, re-creating menus, moving pages, renaming pages etc…) but nothing seems to work.

    I’m on WP 3.1 but also tried the latest beta but still the problem persists. I’m not yet accounting the problem to wp3.1, but my site used to be fine on 3.0. Is there a way to downgrade to test if things work again?

    Could my mysql database be going a bit screwy?

    My site is currently off line and hosted locally using Mamp as my client asked for a few updates to the site.

    Have any PHP or Mysql requirements changed with WP 3.1?

    If you have any ideas / suggestions please let me know … help!

    Thanks
    Stef

Viewing 1 replies (of 1 total)
  • Thread Starter tictok

    (@tictok)

    a-ha … I fixed it.

    Here’s the solution that worked for me.

    I used to only have the default post type, but had created a custom taxonomy (called ‘Regions’) and everything worked fine.

    then I recently created two further custom post types. So now there are three post types (i.e. ‘Posts’, ‘Branches’ and ‘Products’ ) and one custom taxonomy (‘Regions’).

    Its seems this is where my problem with top level pages returning 404’s when using custom permalinks started.

    At this point my custom Taxonomy isn’t tied to any particualr post type, but as soon as I attach it to a custom post type (in this case attaching Regions to Branches) it fixed my problem with top level pages and custom permalinks.

    So, in my functions.php;

    register_taxonomy('regions',array (
    0 => 'branches',
    ),array( 'hierarchical' => true, 'label' => 'Regions','show_ui' => true,'query_var' => true,'rewrite' => array('slug' => ''),'singular_label' => 'Region') );

    It seems the 0 => ‘branches’ is the part I was missing.
    Its possibly something I should have done int he first place, but I didn’t realise this was necessary!

    Hope that helps someone.

    Cheers
    Stef

Viewing 1 replies (of 1 total)
  • The topic ‘Top level pages not working -404’ is closed to new replies.