• Resolved Marc_J

    (@marc_j)


    Hi there,
    I’m using the_content() twice to add additional content to my posts. Do you know how I can prevent a second TOC?

    Best,
    Marc

Viewing 1 replies (of 1 total)
  • Steven

    (@shazahm1hotmailcom)

    @marc_j

    Add this before the second the_content() call:

    remove_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );

    And then add this after it:

    add_filter( 'the_content', array( 'ezTOC', 'the_content' ), 100 );

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Prevent adding a second TOC if the_content() is being used twice’ is closed to new replies.