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

Ryan Frankel ryan.frankel at gmail.com
Wed Dec 5 20:11:04 UTC 2012


Well, that gets me closer.  Flushing the rules like below on wp_loaded
works, until I comment out the filter.  Then the 404's return.

"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 :)"


On Wed, Dec 5, 2012 at 3:05 PM, Rafael Poveda - Mecus.es <raven at mecus.es>wrote:

> 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 :)
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
----------------------------------------
Ryan S. Frankel


More information about the wp-hackers mailing list