WordPress by default is a blogging tool and works extremely well at it. After much debate the developers added the ability to create pages as well as posts, however WP isn’t built for advanced pages, it was only developed to say create an about page or contact page with simple text only.

Conventional ways of creating advanced pages in WordPress was to create all your XHTML/PHP/CSS in a template file and then create a page and link the two, this works, but you end up with loads of template files and editing them is a pain and not very manageable. Wouldn’t it be cool to create and edit pages the same way you do posts?

Well using this technique it is more than possible. First of all you need to add the following code to your Page Template file called “page.php”

<?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php edit_post_link('EDIT', '<p class="edit">', '</p>'); ?> <?php the_content(''); ?> <?php endwhile; endif; ?> <?php get_footer(); ?>

Next you need to download two plugins:

Text Control

Activating both of these will then allow you to very easily add any code such as XHTML, CSS, PHP, JavaScript directly inside of the post box for your pages and will be executed as it should be.


Cameron “dRiZ” Drysdale
Founder & Creative Director of simplecandy.com

10 thoughts on “WordPress-CMSing

  1. I think that WordPress is very appropriate for a CMS. With all the existant plugins and themes, and the flexibility of WordPress, it is fit to be used as full-option content management system.

  2. Hmm, I am quite new to wordpress but I have found a plugin called tinymce-advanced. What is the difference between that gadget and the ‘hack’ above?

  3. @ David

    That plugin just adds more advanced features to the WP-Admin interface, such as giving you more control over certain things. What I talk about above isn’t a hack per-say, it’s just a way to let you manage content the way WordPress was designed to rather than via the Theme system when working with PHP and more advanced XHTML/CSS. Hope this answers your question. x

  4. I’ve known about this for a while and it’s a really good way to do it. That’s how I made my directory with WordPress. 🙂

  5. @Julian

    As far as I can tell nothing much, I personally prefer runPHP as it has the best options IMO and has a good support.

  6. Pingback: links for 2007-11-11 | MY Vast Right Wing Conspiracy

  7. Pingback: A Whole Lotta Yadda » Blog Archive » link-o-licious for 11.12.07

Comments are closed.