• Im using a function found here:
    https://medium.com/@nadeem4uwebtech/how-to-add-reading-time-in-wordpress-without-using-plugin-d2e8af7b1239

    To output the estimated Reading Time for posts, it works great for any text directly written in Gutenberg, however it isnt pulling in any data in any Advanced Custom Fields Gutenberg Blocks?

    Ive tried editing the line:
    $content = get_post_field('post_content', $post->ID);

    However getting no closer to getting any data included ACF Blocks.

    As a last resort, even if it can pull in multiple instances of a “WYSIWYG-Block”, that would be handy.

    Any idea’s how to pull in the ACF Blocks into the esitmation?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You should ask in the ACF dedicated support forum for a definitive answer, but I’m pretty sure ACF data is saved in post meta. You’d need to get that data as well and add it to the post content to get all text entered for the post. Field data could involve data that is not read by the end user. If such data exists, you’d need to only get fields that are actually read.

Viewing 1 replies (of 1 total)
  • The topic ‘Reading Time for Gutenberg’ is closed to new replies.