A quick heads-up on wordpress “static” Pages – it is not entirely clear from the documentation how one is supposed to structure the template in order to get content to display properly when a page is created based on the template – the problem is what template tag to use to display the user edited content (ie the content a user adds by choosing Manage->Pages->(Edit Page) or Manage-Pages-Write Page.
As a matter of fact this is quite straightforward – simply treat the user defined content as a blog post. All the template tags for posts can be used to display the user edited content – use “the_content()” for example to display the entire contents of the page. For some the aforegoing may seem obvious, but coming from a systems development background it seemed very likely to me that page content would be treated differently than post content.
See the WordPress codex for more information on creating page templates - it’s all there.
It is not entirely intuitive, but it does make sense to treat the “static” page as a blog post.


0 responses so far ↓
There are no comments yet...you can be the first. Just do it.
Leave a Comment