We help IT Professionals succeed at work.
Get Started

Sidebar not showing up on wordpress blog page.

RiemenDesign
RiemenDesign asked
on
522 Views
Last Modified: 2013-12-12
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

Comment
Watch Question
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE