[wp-testers] new custom post types - problem viewing new custom post
Danny G Smith
dgs at riskiii.com
Fri Apr 30 01:32:54 UTC 2010
Cool, that will be great!
thanks,
Danny
----------------------------
Sent from my iPhone
On Apr 29, 2010, at 7:16 PM, John Blackbourn <johnbillion
+wp at gmail.com> wrote:
> On Fri, Apr 30, 2010 at 12:55 AM, Danny G Smith <dgs at riskiii.com>
> wrote:
>> Is there a WordPress function that I could put at the end of my
>> script so that it would do it automatically
>
> You'll want this:
>
> global $wp_rewrite;
> $wp_rewrite->flush_rules();
>
> The best place to flush the rules is probably when your plugin is
> activated (but after it registers the custom post type of course).
>
> John
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
More information about the wp-testers
mailing list