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

CloudPress Hosting cloudpresshosting at gmail.com
Wed Dec 5 20:27:01 UTC 2012


Actually it seems the other code already did a hard flush, i want sure if
that was just doing a soft flush but it does a hard flush too.
On Dec 5, 2012 12:18 PM, "CloudPress Hosting" <cloudpresshosting at gmail.com>
wrote:

> I always use flush_rewrite_rules(true); i wonder if that will make a
> difference.
> On Dec 5, 2012 12:11 PM, "Ryan Frankel" <ryan.frankel at gmail.com> wrote:
>
>> 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
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>


More information about the wp-hackers mailing list