WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
Post with Slideshow double on main page (15 posts)

  1. Meteor-san
    Member
    Posted 3 years ago #

    Hi,

    I am creating my first page with WordPress and of course Meteor Slides.

    If I insert the short code to a post the post will shown double at the main page.

    Using WP as a local (intranet) CMS.
    Meteor Slides 1.3.3

    Have many thanks for this verry nice plugin.

  2. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    Typically the problem of double posts is caused by a broken custom loop in the theme that is conflicting with the slideshow's loop. What theme are you using?

    I would test this by switching to the default theme and see if it resolves the problem. You could also deactivate any other plugins you are running to test them for conflicts.

  3. Meteor-san
    Member
    Posted 3 years ago #

    Hi,

    I am using "twentyten".

    I will check out all your suggestions.

  4. Meteor-san
    Member
    Posted 3 years ago #

    Hi,

    okay, in a different theme it is working correct.

    What I have to do to fix it?

    I like to have mine back, because I did several changes to have it personalized.

    Do you have a tip?

  5. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    The slideshow will work correctly in the default version of 2010, so one of the changes you made might be causing this problem.

    I would check to make sure you haven't broken any of the loops in the theme, any conditionals need to be properly resolved so that the loop isn't stuck "on".

  6. Didier Boulay-Claverie
    Member
    Posted 2 years ago #

    Hello,

    I'm using the Graphene theme (v1.4.1) with Meteor Slide v1.4 and WP v3.2.1, and I'm experiencing the same problem.

    I made no theme customization, and I tested it with no other extension activated.

    And the problem doesn't occur with the default theme.

    Does anybody can reproduce this ?
    Is the problem on Meteor Slide side or Graphene side ?

    Thanks by advance for your feedback :)

  7. Didier Boulay-Claverie
    Member
    Posted 2 years ago #

    I can add a precision.

    I have created 2 articles :
    - A slideshow (with Meteor Slideshow) @ 8pm
    - A regular article @ 7 pm

    It was displayed on home page in the following order:
    - Slideshow
    - Slideshow
    - Article

    Then I changed the timestamp of the slideshow article to 6 pm.
    It is now displayed like this :
    - Slideshow
    - Article
    - Slideshow

    Just in case it could help you to understand ...

  8. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, I'll test Meteor Slides with Graphene and see if I can figure out what the problem is.

  9. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    I tested my plugin with Graphene. The index.php file that is used for the frontpage of Graphene uses a custom loop which sorts out sticky posts and can be set to load a specific category.

    This is conflicting with the loop for the slideshow because that query's options are affecting the slideshow query.

    If you add this after line 41 in the index.php file, it will reset the index query and the two should play nicely together:

    wp_reset_query();
  10. Didier Boulay-Claverie
    Member
    Posted 2 years ago #

    Thank you very much, it works ! :)

    I'll suggest this bugfix to the Graphene's author.

  11. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    No problem!

  12. Didier Boulay-Claverie
    Member
    Posted 2 years ago #

    Done -> here

    Have a good day !

  13. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for reporting that problem, hopefully it helps the next person out!

  14. silverks
    Member
    Posted 2 years ago #

    Hi JLeuze,

    I'm the author of the Graphene theme, and unfortunately the fix you suggested can't be implemented, as it'll remove the functionality of filtering the home page posts by category.

    I did quite a bit of digging, and found out that the bug actually lies in the Meteor Slides plugin itself, and not the theme. This is because the plugin creates a new query within the WordPress main query to display the slides within a post/page, but didn't destroy that query data properly after using it.

    The file where this bug is located is meteor-slides/includes/meteor-slideshow.php. The plugin uses the WP_Query class to get the slides, but resets the query using wp_reset_query(). It should be using wp_reset_postdata() instead to clear the custom query data, as wp_reset_query() is for the query_posts() function, and not the WP_Query class.

  15. Josh Leuze
    Member
    Plugin Author

    Posted 2 years ago #

    Hi silverks, thanks for digging into this problem and clarifying the resets for me! I'll try that out and see about updating my plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic