A WordPress Gutenberg block that displays estimated reading time for articles. This plugin automatically calculates and displays reading time based on content length and customizable reading speed.
- Context-Aware: Automatically detects content from current post or Query Loop context
- Customizable Reading Speed: Adjustable words per minute (default: 275 WPM)
- Full WordPress Integration: Uses native WordPress block controls and styling
- Query Loop Compatible: Works seamlessly within Query Loop blocks
- Comprehensive Styling: Supports all WordPress typography, color, spacing, and border controls
- Upload the plugin files to the
/wp-content/plugins/time-to-read-block
directory - Activate the plugin through the 'Plugins' screen in WordPress
- Add the "Time to Read" block to your posts or pages using the block editor
- In the WordPress block editor, click the "+" button to add a new block
- Search for "Time to Read" or find it in the Widgets category
- The block will automatically calculate reading time for the current post
- Add the Time to Read block inside Query Loop blocks
- It will automatically calculate reading time for each post in the loop
- Words per Minute: Adjust the reading speed calculation (default: 275 WPM)
- Accessible via the block inspector panel
The block supports all WordPress native styling controls:
- Colors: Text color and background color
- Typography:
- Font size, family, weight, style
- Line height, letter spacing
- Text transform and decoration
- Spacing: Padding and margin controls
- Dimensions: Minimum height
- Border: Width, style, color, and radius
- Block Name:
ttrb/time-to-read
- Category: Widgets
- Icon: Clock (Dashicons)
- Type: Dynamic block (server-side rendering)
- Default reading speed: 275 words per minute
- Strips HTML tags and shortcodes from content
- Rounds up to nearest minute
- Displays "Less than 1 minute" for very short content
- Post ID: Automatically detects current post or Query Loop post
- Post Type: Works with any post type
npm install
npm run build
time-to-read-block/
├── src/
│ ├── index.js # Block registration and editor component
│ └── style.css # Block styles
├── build/ # Compiled assets
├── time-to-read-block.php # Main plugin file
├── package.json # Node.js dependencies
└── README.md # This file
- Minimum WordPress Version: 5.0
- Tested up to: 6.4
- Requires PHP: 7.4+
- Initial release
- Context-aware reading time calculation
- WordPress native styling controls
- Query Loop compatibility
- Customizable words per minute setting
This plugin is licensed under the GPL v2 or later.
For support, feature requests, or bug reports, please create an issue in the plugin repository.
Contributions are welcome! Please follow WordPress coding standards and include appropriate tests for any new features.