plugin-icon

Indesign Nepali Post Date

Professional Bikram Sambat (BS) date conversion plugin for WordPress. Lightweight, standalone, and lightning fast.
גרסה
1.0.0
עודכן לאחרונה
Apr 22, 2026
Indesign Nepali Post Date

Indesign Nepali Post Date converts Gregorian (AD) dates into Bikram Sambat (BS) Nepali dates directly within WordPress — with full support for Nepali glyphs, localized month and weekday names, and flexible formatting.

It is built for Nepali news portals, blogs, and any website that must display publish dates, modified dates, or today's date in the Nepali calendar format, as required by Nepal Press Council regulations.

Key highlights:

  • Converts any AD date to BS with Nepali or English numerals
  • Displays Nepali month names (e.g. असार) and weekday names (e.g. मंगलबार)
  • Fully configurable date format pattern via the admin settings panel
  • Optional CSS wrapper class for easy styling
  • Three ready-to-use shortcodes — no coding required
  • Two global PHP functions and a namespaced static API for developers
  • WordPress filter hook to customize output programmatically
  • Supports BS 2000–2101 (AD 1943–2044)
  • Built on PHP 8.2 Enums for robust, type-safe localization
  • Zero external dependencies — no jQuery, no REST calls

Features

Shortcodes

  • [indnpd_post_date] — Outputs the current post's publish date in BS. Accepts optional format and lang attributes.
  • [indnpd_today_date] — Outputs today's live BS date. Ideal for headers, footers, sidebars, or widgets. Accepts optional format and lang attributes.
  • [indnpd_number number="123"] — Converts any number to Nepali glyphs (e.g. 123 १२३). Accepts optional lang attribute.

PHP Functions

  • id_nepali_post_date_get( $datetime ) — Converts a date string or timestamp to a formatted BS string.
  • id_nepali_post_date_today() — Returns today's date in BS.
  • id_nepali_post_date_convert( $number ) — Converts a number to Nepali glyphs.
  • indnpd_get_date( $timestamp, $format, $lang ) — Modern namespaced helper with full format and language control.

Developer API

  • \IndesignMedia\NPD\Manager::convert( $timestamp, $format, $lang ) — Static method for advanced integration.
  • indesign_nepali_post_date_output filter — Hook into every date output to wrap or modify HTML.

Date Format Tokens

Token Output

d Day number

m Month number

M Month name (e.g. असार)

y 2-digit year

Y 4-digit year

l Weekday name (e.g. मंगलबार)

Admin Settings Panel

  • Localization Style — Choose Traditional Nepali glyphs (०१२) or Global English digits (012).
  • Date Pattern — Define a custom format string using the tokens above.
  • CSS Wrapper Class — Optionally wrap all date output in <span class="your-class"> for targeted styling.
  • Real-time Preview — The settings page shows a live preview of the current BS date as you configure.

Developers

Built and maintained by Indesign Media — https://indesignmedia.net

For professional support, custom development, or integration assistance, visit the plugin page or contact us directly.

חינםבתוכניות בתשלום
בביצוע ההתקנה, אנחנו מקבלים את הסכמתך לתנאי השירות של WordPress.com ולתנאים של התוסף של הצד השלישי.
נבדקו עד
WordPress 6.9.4
תוסף זה זמין להורדה ולשימוש דרך שברשותך.