[Plugin: SidePosts Widget] Repetition of Posts Excerpts
-
I have created a customized home page (using Tarski theme) that shows posts from certain categories on the home page. here are the codes:
<?php /* Template Name: Homepage */ ?> <?php get_header(); ?> <div class="primary"> <div id="section-articlelist"> <?php // "Section headlines" module begins query_posts('cat=2,44,46,47,48'); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <div class="entry hentry"> <div class="meta"> <h1 class="entry-title-temp"><a href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a></h1> <p class="metadata"> <?php the_date(__ ('F j, Y', 'tarski'));?> <?php edit_post_link('edit', ' | ', ' | '); ?></p> </div> <!-- /meta --> <?php // this grabs the image filename $values = get_post_custom_values("thumb-image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img class="thumb-image" src="<?php get_option('home'); echo '/'; echo get_option('upload_path'); echo '/'; $values = get_post_custom_values("thumb-image"); echo $values[0]; ?>" alt="image" /></a> <?php } ?> <?php if (get_the_excerpt() != "") { ?> <div class="content"> <?php the_excerpt(); ?> </div> <!-- /Excerpt --> <?php } ?> </div> <?php } } ?> </div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>Like any other homepage I can place a post in different categories, but still have just one instance of the post on the homepage. For some reason activating SidePosts makes my homepage to show my posts on the homepage differently. For example if I have placed a post in three different categories by activating SidePosts the homepage shows that post three times, one after another.
What should be changed in the plugin or my template to fix this issue?
The topic ‘[Plugin: SidePosts Widget] Repetition of Posts Excerpts’ is closed to new replies.