be-jc
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Making sidebar stay putBump, i don’t know why all the posts are the same and instead of showing one post it shows all 4 in one single thread, can anyone explain why this is happening?
Forum: Fixing WordPress
In reply to: Single posts show twiceDid anyone figure out why this is happening? i’m going through the same problem now where all my single posts show the same
Forum: Themes and Templates
In reply to: Making sidebar stay putI’ve had a bit of luck with this. The category section is working fine now.
Now with the singles template there seems to be conflict between comments and sidebar.
If i remove <?php get_sidebar(); ?> from the template the comments will show but having the sidebar means the comments don’t show.
Also now all of a sudden every post is replaced by the newest post. How did this happen?
Please check link http://www.beyondempty.net/site/category/blog/
Current singles.php template
<?php get_header(); ?> <!-- BEGIN content --> <div id="content"> <div class="buffer"> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="title">Archive for the <strong><?php single_cat_title(); ?></strong> Category</h2> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h2 class="title">Posts Tagged <strong><?php single_tag_title(); ?></strong></h2> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h2 class="title">Archive for <?php the_time('F jS, Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2 class="title">Archive for <?php the_time('F, Y'); ?></h2> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h2 class="title">Archive for <?php the_time('Y'); ?></h2> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h2 class="title">Author Archive</h2> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2 class="title">Blog Archives</h2> <?php } ?> <?php get_sidebar();?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- begin post --> <div class="single"> <h2><?php the_title(); ?></a></h2> <p class="date">Posted by: <?php the_author_posts_link(); ?> | on <?php the_time('d F, Y') ?> <?php the_content(); ?> </div> <!-- end post --> <!-- begin comments --> <div id="comments"> <?php comments_template(); ?> </div> <!-- end comments --> <?php endwhile; ?> <?php endif; ?> </div> </div></div> <?php get_footer(); ?>