AI Verified
Display Estimated Read Time For Blog Posts
Display the estimated read time of a post with a shortcode. This code snippet produces a shortcode to display the estimated reading time for a post. It strips HTML tags, counts the words, and divides by 200 (words per minute) to get the reading time in minutes.
PHP
Voted: 5 by 5 user(s)
1. Activate your code snippet. 2. In your posts or pages, add [read-time] where you want the reading time to be displayed. OR To display this in a loop grid, you can call do_shortcode('[read-time]') in your theme's template files, where you list your posts. *Test this on a staging environment before deploying it on your live site.
Scroll down to see more snippets from this codevault.
The author has indicated that this snippet is compatable up to wordpress version: 6.4
Our AI bot has checked this snippet is compatable up to wordpress version: 6.1
Free & Pro
Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.
Pro Only (Coming Soon)
You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.
Last modified:
02/02/2024
This snippet has the following status:
AI Verified
This snippet has been tested by our AI bot, see any comments below.
AI Bot Comments:
Found 0 vulnerabilities
5
6 months ago
Nice :-)
Please see some snippets below related to this snippet..
General
AI Verified
Added: 7 months ago
Last Updated: 3 weeks ago
<p>Snippet to convert JPG / PNG / Gif to WebP automatically on upload. Used GD or ImageMagick</p>
General
AI Verified
Added: 1 month ago
Last Updated: 4 days ago
<p>This snippet provides a project timer functionality within the WordPress admin dashboard. It allows users to:<br />- Start, stop, and log time spent on various tasks.<br />- Manually add time entri...
These are some popular snippets from this users codevault..
General
AI Verified
Added: 6 months ago
Last Updated: 5 months ago
Display the estimated read time of a post with a shortcode. This code snippet produces a shortcode to display the estimated reading time for a post. It strips HTML tags, counts the words, and divi...
WordPress Admin
AI Verified
Added: 4 months ago
Last Updated: 3 months ago
This WordPress code snippet enhances the admin dashboard by adding a custom item to the WordPress admin bar labeled "Check External IP". This feature allows administrators to fetch and display the ext...
General
AI Verified
Added: 4 months ago
Last Updated: 4 months ago
Display the users current IP address with shortcode [my-ip]
Category
Snippet Status