Link to home
Start Free TrialLog in
Avatar of RiemenDesign
RiemenDesignFlag for United States of America

asked on

Sidebar not showing up on wordpress blog page.

Hello.

My sidebar is not showing up on my blog pages. It shows up on every other page, but not the blog ones.

My code is below:
<?php 
/*
Template Name: Blog
*/
get_header(); include('lsidebar.php'); ?>

<!-- BEGIN content -->
<div id="content">


	
	<!-- begin latest posts -->
	<div class="box">
		<div style="margin-top: -20px;"><h2>BLOG</h2></div>

	<?php if (have_posts()) : ?>
	<ul class="homelist2">
	<?php 
query_posts('cat=3'); while (have_posts()) : the_post(); ?>
	<li>
		<a href="<?php the_permalink(); ?>" class="title"><?php the_title(); ?></a>
		<p><?php echo dp_clean($post->post_content, 400); ?>		<a href="<?php the_permalink(); ?>">>>MORE</a>
</p>
		
	</li>
	<div style="margin-left: -20px; padding-top: 15px; padding-bottom: 15px;"><img src="/images/white_divider.gif" alt="" /></div>

	<?php endwhile; ?>
	</ul>
	<p class="postnav">
		<?php next_posts_link('&laquo; Older Entries'); ?> &nbsp; 
		<?php previous_posts_link('Newer Entries &raquo;'); ?>
	</p>
	<?php endif; ?>
	</div>
	<!-- end latest posts -->

</div>
<!-- END content -->

<?php get_footer(); ?>

Open in new window

SOLUTION
Avatar of DrDamnit
DrDamnit
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
individual posts use single.php 
add your include statement to that file.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial