I'm trying to use WordPress as a CMS, for a site on which 'blog posts' will only be a minor feature, and one stretching the notion of a 'blog', at that. In other words, they'll be news stories: like blog posts in terms of the fact that they have content and a date, but unlike blog posts since there won't be any commenting.
The rest of the site will consist of static pages, plus some home-baked PHP functionality. There is a requirement for an editor to be able to update some of the content on the static pages, using the WordPress WYSIWYG editor.
My initial challenge is to get together a page that contains two editable sections of content. Those sections should be independent, and both editable via the WYSIWYG editor. In this initial simplification, there will be no custom requirements; in fact, there will be no requirements for date/time storage, title, or anything at all other than free-form HTML content.
The closest I've got to this is:
- A 'Page' with a custom template
- That custom template includes the following for each area of the page that can be edited:
query_posts(array('name' => 'name-of-content-chunk', 'post_type' => 'content-chunk'));
- The 'content-chunk' template simply displays the post content
I get the feeling that, for this simplified version, I could probably use pages instead of posts, although including a page requires an additional wordpress plugin. In addition, if I want anything custom beyond this simplification, I'm pretty sure I need to use custom posts.
Does anyone have a tutorial which describes how to use WordPress as a CMS in this exact manner - i.e. multiple pieces of WYSIWYG-editable content on each page? This is pretty much the base requirement of any CMS, and I'm surprised that there's very little info. out there about it (although, given WordPress' origins as a blogging platform, I can understand it).