WordPress.org

Ready to get started?Download WordPress

Forums

Simple Footnotes
Duplicate entries on WP 3.5 (16 posts)

  1. http://halfelf.org/2012/google-apps-aint-free/ for example

    If there's one footnote, it shows up three times.

    Two and they show up twice each. I thought it was because I was on trunk, but this happens on a clean 3.5 as well.

    http://wordpress.org/extend/plugins/simple-footnotes/

  2. Rob Kish
    Member
    Posted 1 year ago #

    I am having exact same issue

  3. marcboulos
    Member
    Posted 1 year ago #

    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.

  4. Jordi Gran
    Member
    Posted 1 year ago #

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

  5. Jordi Gran
    Member
    Posted 1 year ago #

    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.

  6. Mike Little
    Member
    Posted 1 year ago #

    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

  7. Mike Little
    Member
    Posted 1 year ago #

    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.

  8. marcboulos
    Member
    Posted 1 year ago #

    Unfortunately, I use Jetpack heavily.

  9. Jordi Gran
    Member
    Posted 1 year ago #

    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.

  10. Mike Little
    Member
    Posted 1 year ago #

    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.

  11. Mike Little
    Member
    Posted 1 year ago #

    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;
  12. Oh man, that works for me too.

  13. marcboulos
    Member
    Posted 1 year ago #

    Worked like a charm. Thanks!

  14. libis
    Member
    Posted 1 year ago #

    Thanks, works for me!

  15. Jordi Gran
    Member
    Posted 1 year ago #

    Great. Thanks.

  16. ralphperez38
    Member
    Posted 1 year ago #

    if ( null === $content )
    return;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.