WP Latest Notifications — WordPress Plugin
WordPress Plugin · v1.0.1

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.

yoursite.com/notifications
Notifications
1
Annual Report 2025–26 Released 28 May 2026
⬇ PDF
2
Admission Guidelines Updated 25 May 2026
⬇ PDF
NEW
3
Holiday Notice — June 2026 20 May 2026
4
Tender: IT Infrastructure 15 May 2026
⬇ PDF
5
Staff Training Program 10 May 2026
5Plugin files
2Shortcodes
0Dependencies
1REST endpoint
PHP 7.4+Minimum requirement

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

1

Install & Activate

Upload the plugin folder to /wp-content/plugins/ and activate from the plugins screen. The database table is created automatically.

2

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.

3

Configure the badge

Under Notifications → Settings, set how many top entries get the red NEW highlight and the total display limit.

4

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.

Full-page table
Sidebar widget
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"]

Notifications
1
Annual Report 2025–26 Released 28 May 2026
NEW
3
Holiday Declaration — June 2026 20 May 2026
5
Staff Training Program 10 May 2026

Rendered by

Notifications
2
Annual sport 01 Jun 2026

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.

[wp-notifications limit="6" new="2" ]

For a scrollable fixed-height version:

<!-- wrap in this div --> <div class="wpnotif-scrollable"> [wp-notifications limit="10"] </div>
  • 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.

[wp-notifications_widget limit="5" new="2" title="Latest Updates" ]

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

1

Download from GitHub

Clone or download the wp-notifications repository from GitHub.

2

Upload to WordPress

Copy the wp-notifications/ folder to your site's /wp-content/plugins/ directory via FTP or cPanel.

3

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.

4

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

WordPress 5.5+ PHP 7.4+ MySQL 5.6+ / MariaDB 10+ No extra dependencies

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

GET /wp-json/wp-notifications/v1/list?limit=6

Parameters

limit integer, default 6 Max rows to return

Example response

[ { "id": 1, "title": "Annual Report 2026", "notif_date": "2026-05-28", "link_url": "https://example.com", "doc_url": "https://example.com/r.pdf", "doc_name": "Report_2026.pdf" } ]

Free & open source

Licensed under GPL-2.0+. Contributions, issues, and pull requests are welcome.

Sybertrix / wp-notifications
Jayant Mallick Best digital marketing & SEO Specialist in bhubaneswar

Digital marketer delivering high impact WordPress, SEO, and Meta Ads solutions.

I am a skilled digital marketer specializing in WordPress, SEO, and Meta Ads, delivering data driven, growth focused, and user centric marketing solutions

Call Now

+918763766029

Mail Me

mallickjayant451@gmail.com

My Address

Puri Canal Road, Bhubaneswar

Find with me