VideoHive

page template + metabox

12 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
Chrisbongers says

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..

http://imageshack.us/photo/my-images/268/schermafbeelding2011062.png/

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

thanks for he idea i need those templates to work on every and any page. :)

12 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
Chrisbongers says

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.

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

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?

12 posts
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
Chrisbongers says

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)

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

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.

2945 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 100 and 199 users
+2 more
duotive says

UP

by
by
by
by
by