Beautiful
Notifications
for WordPress
A self-contained plugin that gives your site a scrollable, date-sorted notification board — with a red NEW badge, clickable title links, PDF downloads, and two shortcodes for any layout.
Everything you need, nothing you don't
Built for schools, institutions, and government portals that need a clean, reliable notice board with zero bloat.
Red NEW badge
Configurable threshold automatically highlights your latest N notifications with a red left border and a NEW separator — sorted by date, always accurate.
Hyperlinks in titles
Embed any URL directly into a notification title. It renders as a styled link with an external-link icon — no extra markup required.
PDF & document download
Attach any file from the WordPress media library — PDF, DOCX, XLSX. A download button appears automatically in the third column.
3-column full-page table
Use the shortcode anywhere on a page for the full S.No | Title | Download table. Wrap in .wpnotif-scrollable for a fixed-height scroll.
2-column sidebar widget
Use the shortcode or the drag-and-drop classic widget for a compact S.No | Title+date panel perfect for sidebars and footers.
REST API included
Fetch notifications as JSON via the built-in endpoint. Ideal for headless setups, AJAX refreshes, or displaying data in external apps.
WordPress-native security
Every form uses nonces. All user input is sanitized with sanitize_text_field, esc_url_raw, and absint. No raw SQL — everything goes through $wpdb prepared statements.
Own database table
Creates a dedicated wp_notifications table on activation using dbDelta — no post-type pollution, clean uninstall, fast queries.
Fully responsive
The table and widget adapt gracefully to all screen sizes. The sidebar widget uses CSS Grid with inline fallback styles so it renders correctly even in restrictive page builders.
Up and running in minutes
Install & Activate
Upload the plugin folder to /wp-content/plugins/ and activate from the plugins screen. The database table is created automatically.
Add notifications
Go to the Notifications admin panel. Fill in a title, date, optional link URL, and optionally pick a file from the media library.
Configure the badge
Under Notifications → Settings, set how many top entries get the red NEW highlight and the total display limit.
Drop in a shortcode
Paste shortcode into any page or post. For the sidebar, use the widget or the widget shortcode.
See both layouts in action
Toggle between the full-page table and the sidebar widget to see exactly how each shortcode renders.
| S.No | Title | Document |
|---|---|---|
| 1 | Annual Report 2025–26 Released28 May 2026 | Download |
| 2 | Revised Admission Guidelines for 202625 May 2026 | Download |
NEW |
||
| 3 | Holiday Declaration — 2nd June 202620 May 2026 | — |
| 4 | Tender Notice: IT Infrastructure Upgrade15 May 2026 | Download |
| 5 | Staff Training Program — July 202610 May 2026 | — |
| 6 | Circular: Campus Safety Guidelines05 May 2026 | Download |
Rendered by [wp-notifications limit="6" new="2"]
Rendered by
Two shortcodes, any layout
[wp-notifications] full-page
Renders a 3-column responsive table: serial number, title with optional link, and a download button for attached documents.
For a scrollable fixed-height version:
- limitdefault: 6Maximum rows to display
- newdefault: 2Rows before the NEW separator
[wp-notifications_widget] sidebar
Compact 2-column list: serial number and title with date below. Use in sidebars, footers, or any narrow column. Also available as a classic drag-and-drop widget.
Or use as a classic widget under Appearance → Widgets.
- limitdefault: 5Maximum rows to display
- newdefault: 2Rows before the NEW separator
- title"Notifications"Header text (leave empty to hide)
Four steps to go live
Download from GitHub
Clone or download the wp-notifications repository from GitHub.
Upload to WordPress
Copy the wp-notifications/ folder to your site's /wp-content/plugins/ directory via FTP or cPanel.
Activate the plugin
In the WordPress admin go to Plugins → Installed Plugins, find WP Latest Notifications, and click Activate. The database table is created automatically.
Add your first notification
Go to the new Notifications menu in the sidebar. Fill in a title, date, and optional link or PDF. Drop [wp-notifications] on any page.
System requirements
Headless & AJAX ready
The plugin registers a public REST endpoint so you can fetch notifications in any external app, via AJAX, or in a headless WordPress setup.
Endpoint
Parameters
Example response
Free & open source
Licensed under GPL-2.0+. Contributions, issues, and pull requests are welcome.
Sybertrix / wp-notifications