How to Add Estimated Post Reading Time in WordPress

estimated post reading time

If you’ve read an article from Medium before, you probably notice there’s a text displaying estimated post reading time for every article. This is quite useful and gives an idea about how long the article is. If you’re looking to add the same feature, please read through this article.

Luckily, someone has created a plugin for this purpose. You can download and install Estimated Post Reading Time plugin from WordPress.org for free.

This plugin comes with a settings page where you can set “Words Per Minute” option to whatever number you wish (the default is set to 250, which means 250 words per minute). This allows the plugin to automatically calculate estimated reading time for every post. Brilliant.

Next, if you want to display the estimated reading time, you may use [est_time] shortcode anywhere you want in the post or page. For Genesis Framework users, here’s a little snippet you can use to display the estimated reading time to every article on your site:

1 2 3 4 5 6 7 8 9 10
<?php
//* Add Estimated Post Reading Time in Genesis Framework using Estimated Post Reading Time plugin
add_filter( 'genesis_post_info', 'afn_post_info_filter' );
function afn_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [post_edit] Estimated reading time: [est_time]';
return $post_info;
}
view raw functions.php hosted with ❤ by GitHub

Here’s what you’ll see:

post reading time

We hope this article helped you to display estimated reading time on your WordPress site. For support for this plugin, please see the Support page on the WordPress.org site.

Don’t forget to subscribe to our RSS and follow us on Twitter and Google+ so you won’t miss any cool tutorial like this.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *