• Resolved vaktmester

    (@vaktmester)


    Hi Jason!

    Love the plugin, thanks for making it.

    The issue I’m experiencing is a repeating and exponentially growing footnotes list.

    I’m using wp_list_pages with a Walker class to output a page’s sub pages and the list is repeated and doubled after each sub page’s content.

    The Walker class traverses the child tree and returns each sub page’s content with apply_filter(“the_content”).

    I see that you bind to this filter, so I’m guessing this has something to do with it.

    Any tips?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Yingling

    (@yingling017)

    The footnotes are added to the end of the post content with the_content filter. Although it should be conditionally checked to be added based on the is_singular and is_main_query check. I’m wondering if it is hitting your walker output because that is actually running inside the main query for the page.

    You could potentially create your own conditional check to remove the after content with the following code on those only. I’m not sure how well that will work for you.

    global $easyFootnotes;
    remove_filter('the_content', array($easyFootnotes, 'easy_footnote_after_content'), 20);

    I’m working on refactoring some of the functionality for more easily changing those, but I don’t have any kind of timeline for it now.

    Thread Starter vaktmester

    (@vaktmester)

    Thank you, I’ll just remove the footer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Repeating footer list when multiple the_content filters’ is closed to new replies.