Forums

[resolved] [Plugin: SidePosts Widget] Repetition of Posts Excerpts (13 posts)

  1. bluebird2
    Member
    Posted 3 years ago #

    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?

    http://wordpress.org/extend/plugins/sideposts/

  2. Txanny
    Member
    Posted 3 years ago #

    Nothing wrong with your template. I've seen what you mean, and could reproduced it.

    The problem is only when setting a custom query. I seems the query filters set by sideposts collision in some way with the custom query.

    Filled a bug issue and will follow them. This is the issue #30 and can be followed here: http://alkivia.org/tracker/view.php?id=30

  3. Txanny
    Member
    Posted 3 years ago #

    Can download the development version and test it? Found a buggy filter that should not be there. Download it here: http://wordpress.org/extend/plugins/sideposts/download/

    Waiting for your feedback. Thanks!

  4. bluebird2
    Member
    Posted 3 years ago #

    Works perfectly! Thanks.

  5. bluebird2
    Member
    Posted 3 years ago #

    One more thing:

    I tested the new version today, and it worked fine. But later I found noticed that the plugin deactivates galley pictures in the posts. I use "Shadowbox JS" to show WP gallery pictures. Sample page can be seen here:

    http://sourena.net/fa/images/seattle-public-library

    Is there any way to make the plugin work without disappearance of the galleries?

  6. Txanny
    Member
    Posted 3 years ago #

    Deactivating the widget does the Shadowbox to work?

    I see no relation as the widget does nothing with the post content, only changes the query. And it seems the Shadowbox links and classes are in place.

    Just wondering why there is a "onclick" empty event on the link...

  7. Txanny
    Member
    Posted 3 years ago #

    BTW, I see it working now, but inages are only show in the English version. In the Farsi translation only shows an empty box. And I cannot see SidePosts at the SideBar...

  8. bluebird2
    Member
    Posted 3 years ago #

    There was a misunderstanding here. Activating the widget removes the gallery pictures. It has nothing to do with Shadowbox. Even if when I deactivated Shadowbox the gallery pictures did not show up. They just disappeared. (Note: the gallery pictures are not even in the same page SidePosts Widget was placed but still activating SidePosts Widget made them disappear.)

    I updated SidePosts a few hours ago to 1.4.5. Now I can activate it without having any problem with the gallery pictures but as soon as I place the widget in a page the gallery pictures disappear.

  9. Txanny
    Member
    Posted 3 years ago #

    What gallery are you usign?

    If not misunderstand, the page thumbnails disaperars, isn't it? Does the same in the two languages?

  10. bluebird2
    Member
    Posted 3 years ago #

    Regular gallery feature of WordPress. No plugin.
    Yes, all the thumbnails disappear, in both languages.

    The short code I have in the page is the regular WP short code: [gallery link="file"]

  11. Txanny
    Member
    Posted 3 years ago #

    I tested that, and it works perfect for me. Images are shown in the gallery with no problems. I will do more tests on my site

    By now, I'm not having any trouble with this and found nothing related to the post query in the WordPress gallery code.

  12. Txanny
    Member
    Posted 3 years ago #

    I moved this to a new thread, as it is unrelated to this one. Follow it at http://wordpress.org/support/topic/259859

    Bug confirmed and reproduced in one site, follow the bug history at: http://alkivia.org/tracker/view.php?id=52

  13. bluebird2
    Member
    Posted 3 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags