Support » Plugin: Meteor Slides » [Plugin: Meteor Slides] Post with Slideshow double on main page

  • Meteor-san

    (@meteor-san)


    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.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    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.

    Meteor-san

    (@meteor-san)

    Hi,

    I am using “twentyten”.

    I will check out all your suggestions.

    Meteor-san

    (@meteor-san)

    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?

    Plugin Author Josh Leuze

    (@jleuze)

    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”.

    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 🙂

    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 …

    Plugin Author Josh Leuze

    (@jleuze)

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

    Plugin Author Josh Leuze

    (@jleuze)

    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();

    Thank you very much, it works ! 🙂

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

    Plugin Author Josh Leuze

    (@jleuze)

    No problem!

    Done -> here

    Have a good day !

    Plugin Author Josh Leuze

    (@jleuze)

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

    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.

    Plugin Author Josh Leuze

    (@jleuze)

    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.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Meteor Slides] Post with Slideshow double on main page’ is closed to new replies.