• I see in the forum that other users have seen the same issue that I’m seeing, which is duplication of footnotes: “Duplicate Footnotes When Using Elementor”.

    I also see that the issue is “resolved” with the stance that “May be something that uses the apply_filters(‘the_content’, $content) function in the theme or plugin causing it”.

    However, I’ve seen from other forums that WP doesn’t guarantee that content is only one once. Therefore, it seems like this issue IS a bug in the plugin. What steps need to be taken to fix this issue? I can help if needed.

    Example: “There is no expectation in WordPress whatsoever that content will only be accessed once.”

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter 1concordia

    (@1concordia)

    I’m going to suggest to the author that the following manual reset short code is added to the plug-in. When testing with my website, it fixes the problem without any side effects.

    Then it doesn’t matter what the Theme does, it always works. For reference, I’m using the ‘color newsmagazine’ theme.

    add_shortcode( 'efn_reset', array( $this, 'short_code_reset' ) );
    
    /**
     * Manually reset foot notes and counter
     */
    public function short_code_reset() {
    	$this->footnoteCount = 0;
    	$this->footnotes = array();
    	return "";
    }
    austinwdunn

    (@austinwdunn)

    How do you add this code? Is the code Java Script or CSS? Is the code just copy and pasted into the page?

    Thread Starter 1concordia

    (@1concordia)

    I’ve forked the project and there is a pending pull request. My fork in on github:

    https://github.com/ericraider33/easy-footnotes

    My updated code is here:
    https://github.com/ericraider33/easy-footnotes/blob/master/easy-footnotes.php

    Until they update the plug-in, you can copy that PHP over the original easy-footnotes.php file in your content directory.

    Use on the beginning of your page with the short code: [efn_reset][/efn_reset]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Footnotes’ is closed to new replies.