
Post Time Ago
Displays time since post publication e.g., 2 hours ago in human-readable format. Use shortcode or function to show time differences easily.
Show time elapsed since a post was published in a human-readable format like “2 hours ago” or “Scheduled” for future posts. Uses caching for improved performance. Display with the [timeago] shortcode or use the display_post_time_elapsed function for flexibility across your site.
$17
Plugin Overview
The Post Time Ago plugin allows you to display the human-readable time difference since a post was published, such as “2 hours ago” or “Scheduled” for future posts. Using the [timeago] shortcode or the display_post_time_elapsed function, you can easily display these time differences wherever you need them on your site. The plugin also uses caching to improve performance and ensure the time calculations are quick and efficient.
Key features & benefits
- Human-readable timestamps: Automatically displays time in formats like “X minutes ago” or “Scheduled” for future posts.
- Shortcode support: Use the [timeago] shortcode to add time displays to posts or pages.
- Performance-optimized: Caches time differences for 1 hour to reduce server load.
- Multilingual ready: Supports translations and caches results based on locale.
- Flexible integration: Use the built-in function display_post_time_elapsed for custom integrations.
- Automatic cache invalidation: Cache is cleared when a post is updated.
How it Works and What to Expect
Once the plugin is activated, it will automatically show a human-readable time difference since a post was published or indicate that a post is scheduled if it’s in the future. You can display these time differences in your posts, pages, or widgets using the [timeago] shortcode, or programmatically with the display_post_time_elapsed() function.
- For published posts: Time differences like “2 hours ago,” “3 days ago,” or “1 week ago” are displayed based on the post’s publication date.
- For scheduled posts: Displays “Scheduled” if the post is set to be published in the future.
- Cache for performance: The time difference is cached for 1 hour, ensuring fast page loads and reducing the load on your server.
Sample output:
- Post Published: “3 hours ago”
- Post Scheduled: “Scheduled”
- Future Post: “Scheduled for 12:00 PM tomorrow”
Performance Overview
Is it fast? Yes. The plugin uses caching to store the time difference for 1 hour, reducing server load and making sure the page doesn’t need to calculate the time difference on every page load. The result is delivered quickly, even if you have a lot of posts or heavy traffic.
Requirements & Compatibility
- WordPress 6.0+
- PHP 7.0+
- Translation Compatibility: Polylang, WPML, TranslatePress, Loco Translate (for seamless multilingual support).
- Works with any WordPress theme, post type, and WooCommerce.
- No database modifications—uses transient caching for fast performance.
Language Support
Available Languages:
- English
- Spanish
- Portuguese
- French
- German
- Italian
Custom Language Files
The plugin supports custom translations. You can easily add your own .po and .mo files for any language, or use translation plugins like Polylang, WPML, and TranslatePress for dynamic translation of ALT texts.
License
The Post Time Ago is licensed under the Single Domain Licence:
- 1 license per domain.
- For more details, visit: LitePlugin License


