Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Excellent. Thanks for posting your solution. Please select it as the answer once enough time has past. Also, it's recommended to up-vote any helpful answers. Commented Oct 24, 2011 at 14:20
  • I'm having a hard time getting this to work, not sure why. Even copying/pasting in to my functions rather than trying to port over your changes gives me tons of errors. I'm thinking something in WordPress's core must have changed between when this was written (over 3 years ago) and today. I'm trying to figure out the same thing: wordpress.stackexchange.com/questions/180994/… Commented Mar 12, 2015 at 20:50
  • 1
    flush_rewrite_rules() on init? don't to it. basically you are resetting your rewrite rules with each and every page load. Commented Jan 29, 2020 at 17:21