Adding an estimated reading time to your WordPress posts enhances user experience by setting clear expectations for readers. It encourages engagement by letting visitors know how much time they’ll need to invest upfront. This simple feature demonstrates consideration while potentially increasing the likelihood of readers staying on your site longer.
The easiest way to show estimated reading time is by using a plugin. It’s fast, reliable, and doesn’t require technical knowledge.
Several plugins offer this feature. A popular and lightweight option is Reading Time WP.
Once installed:
You can style the output using custom CSS for better visual alignment with your theme.
If you prefer not to use a plugin, you can add reading time manually with a bit of code. This method provides more control and customization.
function get_estimated_reading_time($post_id = null) {
if (!$post_id) {
$post_id = get_the_ID();
}
$words_per_minute = 200;
$content = get_post_field('post_content', $post_id);
$word_count = str_word_count(strip_tags($content));
$reading_time = ceil($word_count / $words_per_minute);
return $reading_time . ' minute read';
}
Insert the reading time where you want it to appear, usually at the top of the post. Edit the single.php or use hooks depending on your theme.
Here’s a sample snippet:
echo '<p>' . get_estimated_reading_time() . '</p>';
To make it look cleaner, add this to Appearance > Customize > Additional CSS:
.reading-time {
font-style: italic;
color: #555;
margin-bottom: 10px;
}
For those who use the block editor (Gutenberg), another approach is to use a plugin like Kadence Blocks or GenerateBlocks along with a reading time shortcode.
Use a plugin like Shortcoder or Insert PHP Code Snippet to create a shortcode for reading time.
Use the same function mentioned earlier, but assign it to a shortcode:
function shortcode_reading_time() {
return get_estimated_reading_time();
}
add_shortcode('reading_time', 'shortcode_reading_time');
Then, in your post or page, simply insert:
[reading_time]
Gutenberg allows full control of alignment, size, color, and spacing, making this method great for visual customization.
Before diving into the steps, let’s quickly understand the benefits:
To further enhance visual appeal, consider:
Adding estimated reading time to your WordPress posts is a simple yet effective way to improve usability and reader satisfaction. Whether you choose a plugin for quick setup or code it manually for deeper control, the benefits far outweigh the effort. Choose the method that suits your technical comfort level, test it on a few posts, and iterate as needed. Over time, your audience will appreciate the added transparency and readability that this thoughtful feature provides.
Learn how to secure your WordPress site with Two-Factor Authentication (2FA) using Google Authenticator to minimize unauthorized access risks.
Discover the seven best WordPress help desk plugins to boost your customer support and manage tickets easily and efficiently.
Explore the 16 best WordPress comment plugins in 2025 to improve interaction, reduce spam, and build a strong user community.
Explore the top 10 WordPress admin dashboard plugins to enhance usability, customize layouts, and manage user access effortlessly.
Discover the best free WordPress slideshow plugins to boost your website's visual appeal with stunning and interactive sliders.
Learn how to move WordPress comments between posts using a plugin, bulk edit, or code method—easy steps for all skill levels.
Learn how to use recipe schema in WordPress to boost your blog's search visibility and traffic.
Learn how to audit, update, and optimize WordPress plugins for a secure, high-performing site.
Learn essential steps to create, maintain, and enhance WordPress plugins effectively, ensuring an optimal user experience and seamless integration within the dynamic WordPress ecosystem.
Discover how to enable PHP in your WordPress posts and pages to create dynamic content, reduce plugin reliance, and enhance your site's functionality while maintaining security and performance.
Learn simple methods to disable self-pings in WordPress and enhance site performance.
Learn how to secure your WordPress site by enforcing strong password practices effectively.