Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Custom post type/category/taxonomy pages giving 404 – ENFOLD #163377

    Dude,

    Thanks for the help. I like the new site!

    After poking around for quite some time, I was able to get the pages to work. I’m still not sure what was breaking them, as I can’t pinpoint any one thing. The theme and plugins have been working great as I started building from a fresh install. Then today, I ended up taking another shot at finding something that would let the current site continue on. It’s a pretty complex site in areas, so rebuilding was looking like a huge job.

    Anyways, here’s what got it to work. I added this to functions.php:

    add_action(‘init’, ‘custom_taxonomy_flush_rewrite’);
    function custom_taxonomy_flush_rewrite() {
    global $wp_rewrite;
    $wp_rewrite->flush_rules();
    }

    I hope this isn’t a bad fix. At least it’s working. I’d love to hear your thoughts on this solution and if I could have done anything else.

    Thanks again for your support!

Viewing 1 post (of 1 total)