RiemenDesign
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:
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('« Older Entries'); ?>
<?php previous_posts_link('Newer Entries »'); ?>
</p>
<?php endif; ?>
</div>
<!-- end latest posts -->
</div>
<!-- END content -->
<?php get_footer(); ?>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
add your include statement to that file.