Support » Plugins » [Plugin: AsideShop] Latest aside post show up twice

  • I have one more problem adding to the previous one. I use asideshop to show posts created with FeedWordpress in order to show some type of lifestream in between blog posts, I love it.

    But the latest post will show up twice as you can see here.

    In this example, if I disable the Vimeo template in AsideShop, they become normal posts, and the latest post only shows once. If I delete the Vimeo posts the next Twitter template/post will then show up twice when used as aside.

    If the latest created post is not an aside it’s all ok (screenshot available). Any idea?

Viewing 3 replies - 1 through 3 (of 3 total)
  • supergab,

    It’s just too weird that I can’t reproduce this kind of behaviour people describe here. In order to reproduce the results you get, I have to make a setup that is on par with your setup which is: same Apache, PHP version, same WordPress version, same plugins you and preferably same theme.

    Having been playing with AsideShop for a while now, it seem strange that some of you have it all fine, some all bad.

    This I can live with since I can create a sticky post and hide it using CSS. But for this problem, I would love to know how to hard code it to enable the plugin all the time.

    OK I’ve found the cause, my WordPress loops.

    I use a loop in the index.php to display my posts and another in the sidebar.php in order to show the last post of one category.

    Here is the sidebar.php loop which is called before the index.php:

    <?php $my_query = new WP_Query('category_name=pensees&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID;?>
    		<div id="post-<?php the_ID(); ?>">
    		<h3 class="sidetitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    			<div class="penseecontent">
    			<?php the_content(__('(more...)')); ?>
    		<?php endwhile; ?>

    Here is the index.php loop:

    <?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    		<?php if (in_category('7') && is_home() ) continue; ?>
    		<div class="post" id="post-<?php the_ID(); ?>"><div class="post-other"><div class="post-ie">
    		<h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    			<div class="storycontent">
    			<?php the_content(__('(more...)')); ?>
    			<?php comments_template(); // Get wp-comments.php template ?>
    		<?php endwhile; else: ?>
    		<?php _e('Sorry, no posts matched your criteria.'); ?>
    		<?php endif; ?>

    If I call the sidebar.php after the plugin works fine. But my design is messed up.

    By the way this causes this other problem too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: AsideShop] Latest aside post show up twice’ is closed to new replies.