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:
Cameron “dRiZ” Drysdale
Founder & Creative Director of simplecandy.com