Skip to content

A lightweight, customizable WordPress widget to display latest posts from a selected category with a custom title and post count—built using modern PHP standards.

License

Notifications You must be signed in to change notification settings

Tirthagit/wordpress-latest-post-widget-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📬 Latest Post Widget

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.


🚀 Features

  • ✅ 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 using WP_Error and admin notices

🧩 How It Works

  1. Activate the plugin from the Plugins menu.
  2. Go to Appearance → Widgets or the Customizer.
  3. Add the "Latest Post Widget" to any widget area.
  4. Choose:
    • A custom title
    • The number of posts to display
    • A category from your existing blog categories
  5. Save & enjoy a beautiful feed of the latest posts.

🛠️ Plugin Settings

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

About

A lightweight, customizable WordPress widget to display latest posts from a selected category with a custom title and post count—built using modern PHP standards.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages