• Resolved kjwinkler

    (@kjwinkler)


    Love the plugin, but when I create a post using the DIVI theme’s visual builder, it doesn’t correctly read the post. Instead it just renders everything as “1 minute” (or less). Is there an easy fix for this?

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

    (@yingling017)

    Hi there,

    Divi uses shortcodes to display all content and Reading Time WP removes shortcodes from posts as they often are used for functionality that would falsely add to the reading time.

    You could modify the plugin yourself to remove the shortcode stripping functionality by changing the following lines in rt-reading-time.php from:

    $strippedContent = strip_shortcodes($rtContent);
    $stripTagsContent = strip_tags($strippedContent);

    to

    $stripTagsContent = strip_tags($rtContent);

    However, if you make that change you won’t be able to get future updates of the plugin as it would overwrite your changes. You could duplicate the reading time plugin and make a custom version of it with a different name / slug to solve this.

    I am working on upgrading the plugin to include support for Gutenberg, but before tackling shortcodes I’m waiting to see how they’ll be implemented in the new editor.

    Plugin Author Jason Yingling

    (@yingling017)

    Hi @kjwinkler

    I added a new setting to include shortcodes in the reading time calculation. This should allow for counting shortcodes in the total reading time to work better with visual page builders. You can access the setting in Settings > Reading Time WP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not counting posts made in Visual Builder’ is closed to new replies.