Using WordPress as a fully functional CMS
UPDATE 6/1/11: Added one line to the end of the second chunk of code (wp_reset_query). If you do not have this and place that block above the loop, the id does not get reset and will display the wrong content. Worked if after the loop, but probably a bad idea no to include it.
NOTE: Added one line of code to exlude this content block from search (‘exclude_from_search’ => true,).
There are plenty of ways to use WordPress as a CMS (content management system). There are different plugins that allow you to do it, like MultiEdit, but recently I have been working on building the new corporate site for work, and saw something that my manager did to make WordPress into a very powerful CMS. Normally I build sites in WordPress so that the client can make changes to the main content and widget areas themsevles. That doesn’t require any additional code or tinkering. But what if you need additional areas that the client has to be able to edit themselves as well?
In come “custom post types” to the rescue. I will show you how to easily do this to your own WordPress site, and it only takes a few minutes. I don’t know where my manager got the code for it, but I was impressed with how easy it is.
Read the rest of this entry »