Indesign Nepali Post Date
This plugin converts Gregorian (AD) dates into Bikram Sambat (BS) so you can display Nepali dates on posts, pages, widgets, or anywhere in your theme. Handy if you run a Nepali news site, a blog, or any WordPress site that needs BS dates for the publish date, modified date, or just today’s date. Wha
This plugin converts Gregorian (AD) dates into Bikram Sambat (BS) so you can display Nepali dates on posts, pages, widgets, or anywhere in your theme.
Handy if you run a Nepali news site, a blog, or any WordPress site that needs BS dates for the publish date, modified date, or just today’s date.
What it does:
- Converts any AD date to BS, in Nepali or English digits
- Nepali month names (e.g. असार) and weekday names (e.g. मंगलबार)
- Custom date format from the settings page
- Optional post time display after the BS date – 12-hour or 24-hour format, glyphized when Nepali digits are selected
- Optional CSS wrapper class if you want to style the output
- Four shortcodes and a few PHP helpers
- A monthly BS calendar shortcode with clickable day-archive links and a picker for your brand accent color
- A filter hook if you want to change the output
- Covers BS 2000 to 2101 (AD 1943 to 2044)
- No jQuery, no REST calls, no external dependencies
Features
Shortcodes
- [indnpd_post_date] Prints the current post’s publish date in BS. Takes optional format , lang , and show_time attributes.
- [indnpd_today_date] Prints today’s BS date. Good for headers, footers, or widgets. Takes optional format , lang , and show_time attributes.
- [indnpd_number number=”123″] Converts a number to Nepali glyphs (e.g. 123 to १२३). Takes an optional lang attribute.
- [indnpd_post_calendar] Shows a monthly BS calendar. Days that have at least one published post link to the day archive. Takes optional year , month , and lang attributes. Prev / next arrows navigate between months.
PHP Functions
Primary names (introduced in 3.0.0):