Skip to main content

You could download the plugin Reading Time WP. Or you could just add the following code.

Add this code to functions.php:

function reading_time() {
    $content = get_post_field( 'post_content', $post->ID );
    $word_count = str_word_count( strip_tags( $content ) );
    $readingtime = ceil($word_count / 200);

    if ($readingtime == 1) {
      $timer = " minute";
    } else {
      $timer = " minutes";
    }
    $totalreadingtime = $readingtime . $timer;

    return $totalreadingtime;
}

Place this in the code of your page:

<?php echo reading_time(); ?>

That’s it.