A lightweight, powerful, and customizable WordPress widget that displays the latest posts from a specific category — right in your sidebar or widget-ready area. Built with PSR-12 standards, modern PHP 8+ features, and WordPress best practices.
- ✅ Display latest posts from a selected WordPress category
- 🖼️ Customize the widget title and number of posts
- 🔍 Clean, accessible markup with clickable post links
- 🛠️ Built with PHP OOP, PSR-compliant structure, and autoloading
- 🌐 Fully translatable & ready for localization
⚠️ Handles input validation and errors usingWP_Error
and admin notices
- Activate the plugin from the Plugins menu.
- Go to Appearance → Widgets or the Customizer.
- Add the "Latest Post Widget" to any widget area.
- Choose:
- A custom title
- The number of posts to display
- A category from your existing blog categories
- Save & enjoy a beautiful feed of the latest posts.
Setting | Description |
---|---|
Title | Custom title to display above the post list |
Category | Choose a WordPress category from dropdown |
Post Count | Limit how many recent posts to show |