And now for something completely technical…
Posted by kim on June 30th, 2010
So this is a bit of a break from regular programming, I’m not sure that all of you know but during the day I work as a web developer. Currently I kinda *specialise* in building wordpress based CMS websites (ie. using the wordpress blogging platform but making it twist and yield to my every whim). A few weeks ago wordpress released version 3.0 of their amazing open source platform, and I’ve been playing around with it’s new features quite a lot (custom post types! woo!).
Something I found out over the past few weeks that might cause a few other developers less headaches…
When you create your custom post type in wordpress 3.0 and specify a slug for the permalink (and I think, this also applies if you don’t strictly specify that slug), you might get a 404 when trying to access the new post type item that you create (ie. I’ve been creating ‘recipe’ post types that link like… http://domain.com/recipe/postname). There is a SUPER simple fix to this, UNBELIEVABLY simple.
You know how you set up your permalinks in the WP admin? Yeah, that old chestnut, go and re-save. SIMPLES. You don’t have to change any settings, simply go to the permalinks page and click ‘save’… now try and access your previously 404ing page. TA-DA.
Yeah, I have no idea why. Works, though.




