Hmm i have about the same idea worked out in a new theme..
I did the following. If it’s just for homepage on your index you can retrieve that value and then get a certain template part..
Or you could manualy build a switch.
Atleast if i understand you right..
thanks for he idea i need those templates to work on every and any page.
Hmm i am not sure it this is the best way since i’m not really a pro in wordpress but this is how i would do it:
On every page retrieve the option that has been set for that particual page The get that template part (it is not nescearry a part could easily be a complete template, how i look at it)
Maybe the home and blog would give you problems but you can always use is_category and is_frontpage for that
But i think you want some cleaner coding right? So really do it with the standard wordpress functions.
Thanks for the opinion. I think i will make a page template – front page base – and apply the layouts on it. this i think is the cleanest and best solution. What do you think?
Not sure how you plan to check that?
Since wordpress standard goes to category.php etc…
So as far as i understand you will need to create a function and call that on top of everypage? Could you be more specific on what your idea is? (i’m interested now, for improvements on our next theme)
Just use simple page templates to display content. The layouts there are controlled by the user in the backend. Look at kriesis template builder to get the idea. We have something like that but in a simpler approch.