[wp-hackers] 404 Page on Custom Post Types and Custom Taxonomies

Rafael Poveda - Mecus.es raven at mecus.es
Wed Dec 5 20:05:47 UTC 2012


On Wed, Dec 5, 2012 at 8:04 PM, Ryan Frankel <ryan.frankel at gmail.com> wrote:

> Thanks for taking a look Drew.  I turned off all templates except for
> index.php and still get the 404.  Is there any way you could shoot over a
> copy of your htaccess when it is working?  I've disabled any Plugins that I
> am using and checked permissions just in case there was some sort of issue
> with those


Try this code in your functions.php. Works like a charm.

function flush_site_rules(){
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
add_filter("wp_loaded","flush_site_rules");


Don't forget to delete it when finished :)


More information about the wp-hackers mailing list