WordPress sidebar edit

wordpress tips wordpress theme designer peterborough

There may be a time when you want your wordpress theme to show a different or unique side bar page, you might have a static site built in wordpress and need a blog page with the categories and recent posts down the left hand side. Please use the following code below.

<?php get_header(); ?>

<div id=”content”>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id=”post-<?php the_ID(); ?>”>
<h2><?php the_title(); ?></h2>
<div>
<?php the_content(‘<p>Read the rest of this page &raquo;</p>’); ?>

<?php wp_link_pages(array(‘before’ => ‘<p><strong>Pages:</strong> ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

</div>
<?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
</div>
<?php endwhile; endif; ?>
</div>
/* change this code as follows, replacing sidebarblog.php with your sidebar page/*
<?php include(TEMPLATEPATH.”/sidebarblog.php”);?>

<?php get_footer(); ?>

Please comment on your sidebars and errors or show me your sidebar change urls?

Twitter del.icio.us Digg Facebook linked-in Yahoo Buzz StumbleUpon

Leave a comment

Your comment