WordPress.org

Support

Support » Plugins and Hacks » Duplicate entries on WP 3.5

Duplicate entries on WP 3.5

Viewing 15 replies - 1 through 15 (of 15 total)
  • I am having exact same issue

    marcboulos
    Member

    @marcboulos

    I am having the same issue. Everything works correctly on the front page, but when you open an individual post, each footnote appears twice. It also confuses the numbering in the body of the text.

    Jordi Gran
    Member

    @jordi-gran

    Same issue here. Can’t find the work around glancing at the code nor browsing the internet. :$

    Jordi Gran
    Member

    @jordi-gran

    In the meantime I’ve marked the compatibility between WP 3.5 and SF 0.3 as broken for other developers to know and have told @nacin on twitter to see if we can get a response or a fix from him.

    Mike Little
    Participant

    @mikelittle

    Seems to be connected with JetPack. When I disabled JetPack the duplication went away.

    When I re-enabled JetPack, I got a message “Shortcode Embeds could not be activated because it triggered a fatal error. Perhaps there is a conflict with another plugin you have installed?”
    So there is some conflict, however the duplication did come back.

    I’ll investigate more

    Mike Little
    Participant

    @mikelittle

    Deactivating JetPack Sharing stops the duplication problem. So there is some conflict there.
    For now, that’s a workaround for me as the site in question is not yet live.

    I’ll investigate the code later.

    marcboulos
    Member

    @marcboulos

    Unfortunately, I use Jetpack heavily.

    Jordi Gran
    Member

    @jordi-gran

    This is right. Removing Jetpack did the job for me. Will leave it like that for the time being. Hope to have a better solution soon though.

    Mike Little
    Participant

    @mikelittle

    I can see the problem is that the modules in Jetpack that use the opengraph functionality (including the publicize and sharing plugins) are calling get_the_excerpt() which, in turn, calls the_content.

    The shortcode routine in the simple footnotes plugin ends up getting called twice populates an array with the footnote info, which then outputs two of everything.

    I think this plugin needs to only run it’s processing when inside the loop.

    Mike Little
    Participant

    @mikelittle

    I have a fix that seems to work for me:
    In the file simple-footnotes.php, in the function shortcode, round about line 63, immediately after the code:

    if ( null === $content )
        return;

    I added the following:

    if ( !in_the_loop() )
        return;

    Oh man, that works for me too.

    marcboulos
    Member

    @marcboulos

    Worked like a charm. Thanks!

    Thanks, works for me!

    Jordi Gran
    Member

    @jordi-gran

    Great. Thanks.

    ralphperez38
    Member

    @ralphperez38

    if ( null === $content )
    return;

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Duplicate entries on WP 3.5’ is closed to new replies.