Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey everyone!

    I’m the dev behind the WordPress Popular Posts plugin. Here’s some more context on what the actual issue is: https://www.ads-software.com/support/topic/right-names/#post-17323156

    Another update: this filter serves as a quick workaround to prevent Easy Table of Contents from parsing the contents of script tags as headings.

    /**
     * Makes sure that Easy Table of Content doesn't try
     * to parse content from <script> tags as it might break other
     * plugins.
     *
     * @author Hector Cabrera
     *
     * @param  string The post/page content
       @return string The (modified) post/page content
     */
    add_filter( 'ez_toc_extract_headings_content', function($content) {
    	$content = preg_replace('@<script[^>]*?>.*?</script>@si', '', $content);
    	return $content;
    } );

    It would be nice if Easy Table of Contents would automatically filter out script tags in \includes\class.post.php > extractHeadings() so users don’t have to rely on the above code snippet in the future.

    Plugin Author Magazine3

    (@magazine3)

    Hi, thanks for sharing your concern. We have raised a GitHub ticket in our repository and this issue will be addressed in the upcoming update.

    You can track the progress here: https://github.com/ahmedkaludi/Easy-Table-of-Contents/issues/680

    Plugin Author Magazine3

    (@magazine3)

    Hi, Hope you’re doing well. We’ve released a new update in which we have fixed this issue, so kindly update the plugin with the new version 2.0.63, clear the cache once and give it a try. Please feel free to reach out to us if you have any concerns.

    Thread Starter ildomandatore

    (@ildomandatore)

    I have currently removed your plugin, but I am not happy with the TOC of Rank Math: I have to enter the TOC manually every time. And you can’t add TOC in categories.

    Have you fixed the error of the last url going to the top, instead of going to the right place? If the answer is no, I will remove auto-insert H4s from your plugin.

    Finally, your plugin URLs are not SEO friendly. Use underscores like _ and if I remember correctly, capital letters too.

    This guide can help you understand: https://backlinko.com/hub/seo/urls and https://ahrefs.com/blog/seo-friendly-urls/.

    If you want to know more about it, use your favorite search engine and search for “seo friendly url”

    Thread Starter ildomandatore

    (@ildomandatore)

    I’ve solved. ty.

    Plugin Author Magazine3

    (@magazine3)

    Alright. We are marking this thread as closed for now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘plugin stops working’ is closed to new replies.