Use Wordpress As a CMS

Apr 5th, 07 | 11 remarks

series_stamp_3of3.gifIf you followed along with the second post of this series, you’ve no doubt got your shiny new Wordpress installation set up and ready to customize as a Content Management System. Coolio. Before we dive in to using your setup as a CMS, let’s cover some basics.

There are two means of displaying content with Wordpress - Pages and posts. Pages operate outside the the Loop. In other words, they don’t age and they’re always accessible as part of the main navigation. They’re used for displaying “static” information typically found on a website, such as about, contact, history, mission, etc. Conversely, posts are dynamically generated pages which will “fade”, or move down the blog chronology as new entries are made.

*Note: Technically, both Pages and posts are database-driven, and therefore dynamic, but for the purpose of this article and the intended use of Pages, think of them as static. If you already knew that, just pretend you’re still fascinated and we’ll move on. :)

Page Control

One of the ways I use Wordpress as a CMS is by way of custom templates. The kind of pages which can be added using template files that you define are virtually limitless. Say you want to showcase your Portfolio. You might need a layout vastly different from your default pages, especially if you’re displaying large photos on the page. The easiest way to accomplish this is to duplicate page.php, rename is to portfolio.php, and style it to fit the needs determined by your content. Finally, add the following to the top of your page, before any other code:

<?php
/* Template Name: Portfolio */
?>

FTP your new template and log in to your control panel. From within the Pages admin, create your page. I know this seems redundant, but Wordpress needs to reference it somehow. Add your content (if you havent’ already done so from within your HTML editor). Now you can assign it the Portfolio template using the drop-down selector on the right.

Post Control

Using the Loop, you also have extensive control over how and where your post information appears. You can create custom styles by category, by single post, or even by manual posting. For example, the index page of a typical WordPress site features the most recent post (or posts), ordered by date. If you only want certain entries to appear on your front page instead of the most recent one(s), you can specify this by modifying the Loop in the home.php page you created in part II of this series.

Further Considerations

  • Comment Control - for every forum, blog or community portal, there needs to be a way to moderate. In time, you may need to employ the use of some comment moderation and/or anti-spam tools.
  • User Management - User roles may not be a consideration for you yet, but if you ever plan to have multiple authors or users, you’ll have to implement some restrictions.

This wraps up my first attempt at writing a guide for a custom Wordpress install, and my first series of any kind I might add. If you notice that I left anything out or completely botched something up, GOOD GRIEF let me know so I can make edits. Trying to remember my own feeble steps to installing and tweaking Wordpress for the purpose of this article was harder than I thought! :)


  1. Bohonyi Balazs - Zsolt

    Thank you for these articles. I am new to WP, read a lot the codex and just needed some advices and examples to set up WP as a CMS. You really helped me a lot with these series of articles about Wordpress as a CMS.


  2. WPMU and WP as CMS « Feet up, eyes closed, head back

    [...] DesignAdaptations, Using WP as CMS and “Configure WordPress as a CMS“; see also “Potential of WP; Extending as a [...]


  3. Charity

    You’re quite welcome, and thanks for stopping in for a read. :)


  4. Buffer Dump 27DEC07 « Feet up, eyes closed, head back

    [...] Creating Custom Templates for Wordpress Charity at Design adaptations gives a step by step guide to creating template pages in Wordpress - “One of the ways I use Wordpress as a CMS is by way of custom templates. The kind of pages which can be added using template files that you define are virtually limitless. Say you want to showcase your Portfolio. You might need a layout vastly different from your default pages.” Charity has several other articles about using Wordpress including Configure Wordpress as a CMS. [...]


  5. Graham Davies

    Thanks for clarifying the codex - its endless.

    I have been using WordPress for some time but am about to embark on using it as a CMS for a client, your articles are making things a lot more straightforward,
    Cheers.


  6. james

    thanx for the info
    using it to create a static page for my blog


  7. DirectToIndia

    Currently i’m having confusion, i would like to make a blog,
    which one i choose blogspot or wordpress?
    I know themes and design wise wordpress is great choice,
    But can u please let me now in view of seo which one is better from both these?
    Regards,
    DirectToIndia


  8. Charity

    Well I’m no SEO expert, but I’d recommend WordPress over Blogspot hands down, for a variety of other reasons. Flexibility for one thing. WordPress.com is limited in terms of how much you can tweak your blog, but not as much as Blogspot. And if you ever plan to move to a self-hosted solution, at least with WordPress your transition would be virtually seamless because you would already be familiar with the interface.

    There is also a huge community surrounding WP where you can find support, and the developers behind the project release consistent updates which provide more and more functionality!


  9. DirectToIndia

    Thank you for your suggestion, i will prefer now WP over Blogger.


  10. Greg

    I’m early in the process of building a 75 page site with Wordpress. When I started building out my pages I noticed that the Manage->Pages interface does not have ‘categories’ like Manage->Posts. My navigation is going to be custom/fixed so I don’t have to worry about articles/content fading over time. I also want my pages to have url.com/category/pagename which it doesn’t seem like Pages can do since there’s no category. Might I want to just use Posts for all my pages so I can categorize them?


  11. Greg

    Never mind. As usual, a little more searching uncovered a plug-in the does exactly what I needed to to. : ) It’s called “Page Category Plus” and works like a charm. Supposedly not being rev’d but hopefully somebody picks up the reins, and if not a similar one will come along I’m sure.

Post your remark

Other Recent Articles

In Reviews »

Clever Development With Coda

07/15/08
If you follow design related blogs, it seems you can't click a mouse anymore without Coda's icon making an appearance. I heard about this software long before buying my Mac, but because it's exclusive to that platform, I was never able to give it a test run. Now eight ... [ » ]

In Inspiration »

Have You Ever?

06/25/08
If you know me very well, you know how important music is in my life. It's playing at all times in my house, and I embrace all kinds of genres. I don't talk about it much on this blog, but I should. Music and creativity, in my opinion, are inextricably ... [ » ]

In Design »

The Evolution of a Logo (I Can Live With)

06/19/08
One of the most frustrating things for me since I started writing on this blog was the lack of a logo I really loved. That's not to say I haven't tried. But logo design, to me, is kind of a thing all it's own and I'm just not very good ... [ » ]