0
votes
0answers
9 views

How can I clean up the code in my template? [migrated]

When I'm coding static websites, I take pride in having code that's well organized, well tabbed, etc. Unfortunately, when I create a WordPress template, my code becomes a complete and utter mess. This ...
0
votes
1answer
34 views

why is markup routinely placed in functions in wordpress?

Here is an exampple from a woothemes theme. I'm definetly not having a go at woothemes - they are a great theme provider with great standards and this sort of thing is fairly typical in themes. why? ...
0
votes
0answers
5 views

Dynamic heading for page and sub-pages, while sub-pages display a description field from their grandparent page [duplicate]

I want to have a heading that dynamically changes when I change the section i.e. the About us section and all sub pages have a heading of About us and a sub heading description of a custom description ...
0
votes
1answer
192 views

Show page title just from the first child-page in template

how can I do this: Pages: Home - sub-1 -- sub-sub-1 --- sub-sub-sub-1 On home-page should only show the page-title of the first child-page like: sub-1 I found this: <?php $child_pages = ...