Bolting A Framework Onto WordPress

This took me about 10 minutes to figure out and implement. I’m surprised how easy it was. The first thing I did was create a new template and called it “dynamic”. Any wordpress page that wants to use the framework needs to be created with this template and the content left empty.

The dynamic template is then called and the $_SERVER[‘REDIRECT_URL’] is parsed and if the appropriate page resides within the framework, load it all up and serve the dynamic content. If not, throw some negativity at the user.

So the dynamic page acts as the entry point to the framework and passes off the directive in a switch type fashion. Pretty simple and works fine so far.

Has anyone else done something similar or is there a better way of creating dynamic pages? Am I being lame?

1 thought on “Bolting A Framework Onto WordPress”

Leave a Reply

Your email address will not be published. Required fields are marked *