Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wjm

    (@wjm)

    To fix this,
    I have added this code, in plugin.php:
    $res->content = preg_replace('/^.*?\[table-of-content\]/Usi', '', $res->content);}

    right above
    // finalize the "new" content}

    Thread Starter wjm

    (@wjm)

    sorry man, i forgot i had to close it with [/table-of-content]

    anyway, if the closing tag is missing, it shouldnt create a toc at all!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sometimes displaying the shortcode [table-of-content]’ is closed to new replies.