Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using scheduled posts as a event program, by making a loop pick up future posts.

Every now and again, the production site starts to show 404's for the single event pages, and to fix it I have to copy the contents of the rewrite_rule option from my local database, to production.

Does anyone know what is going wrong, and if I can prevent it?


Edit

It's worth noting that it was only the future events that get the 404

share|improve this question
add comment

1 Answer

It sounds like you need to flush your rewrite rules. There is a flush_rewrite_rules() function, although the codex isn't terribly useful with how it is used.

share|improve this answer
    
I switched to default permalink rules, which removed the rewrite_rules option. Does flushing the rewrite rules go beyond this? –  Mild Fuzz Sep 14 '11 at 8:57
    
@MildFuzz I'm not 100% sure to be honest –  Wipqozn Sep 14 '11 at 23:49
    
the codex doesn't even seem to know. It's a mystery!! –  Mild Fuzz Sep 15 '11 at 7:35
    
@Mildfuzz so it would seem. I would experiment with it, but currently don't have a Wordpress installation to work from. –  Wipqozn Sep 15 '11 at 10:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.