How to display current Nepali date in WordPress?

April 13, 2020 0 comments
How to display current Nepali date in WordPress?

With the drastic rising of Nepali news portal and blogging websites in Nepal, usage of Nepali Date is common in most of the sites. Hence,WordPress CMS usage is rising in incremental graphs because of simplicity and ease of use.

In most news portal, you can see the Nepali Date appearing either on the top of the page or on the single news post on your WordPress news portal or blogging websites.


In most tutorials, you can see people implementing outdated code or lengthy steps to generate traffic or revenue to display Nepali date but I don’t prefer length steps neither I have implemented any advertisements.

Please follow the instruction carefully to display the current Nepali date in your WordPress Website.

  1. Create a new folder named “inc” and inside it, new file called “nep_calendar.php” inside your theme folder and insert the following code.[gist id=”1dc0fbde2556bfdc036e1a9fa9e893e8″ file=”nep_calendar.php”]
  2. Include or map the file in functions.php as belows,
    [gist id=”1dc0fbde2556bfdc036e1a9fa9e893e8″ file=”functions.php”]
  3. Insert the following php code where you want to display Current Nepali date
    [gist id=”1dc0fbde2556bfdc036e1a9fa9e893e8″ file=”display-nepali-date.php”]

Ashok kuikel

Ashok Kuikel is DevOps Engineer(Cloud Computing and Cyber Security), Entrepreneur working on Socio-Economic Development via Technology

He has been actively contributing as Joint Secretary of Federation of Computer Association of Nepal Kavre Chapter. Beside that, he is an official Global Peace Ambassador for Global Peace Chain, Nepal Chapter and Member of Internet Society, Nepal Chapter.

Above all, he enjoys learning about new trends and technologies and loves to share innovative ideas to contribute for the growth of the industry.

You can follow me on Social Media, GitHub, and via my Blog Channels.

Leave a Reply

Articles and Tutorials

We love writing about WordPress and latest plugins tutorials, WooCommerce stats, and much more.