Tag Archives: layout

How To Change The WordPress Post Template Via URL Parameter

| Created: July 27th, 2011
WordPress Development 25 Comments

Have you ever wanted to be able to serve up an alternative version of your posts, perhaps tweaking the layout or even the content of the posts? Not all the time, just in certain circumstances?

I’ve had two cases recently where I’ve needed to do this. My solution: to change the post template when a certain URL parameter is added to the URL. Continue reading