How to Display Current Nepali Date in WordPress Site

With the drastic rising of Nepali Bloggers and blogging websites in Nepal, usage of Nepali Date is common in most of the sites. In most news portal websites too, you can see the Nepali Date appearing either on the top of the page or on the sidebar of the site. In this tutorial, we are going to discuss How to Display Current Nepali Date in WordPress Site using a simple plugin step by step.

Here, we will be using Nepali Date Converter Plugin and do some coding tweaks in order to display Current Nepali Date on our site. This amazing plugin was developed and supported by one of the active members of WordPress community codersantosh

Some of the Coolest Features of this Plugin are:

  1. The Plugin easily converts English to Nepali Date through Widgets.
  2. The Plugin also converts Nepali to English Date via Widgets.
  3. It is easy to use.
  4. The Plugin can be used via Shortcodes or PHP functions.
  5. It also supports The Current Date.
  6. Very legitimate.

Display Current Nepali Date in WordPress


Step 1. Install and Activate Plugin

To install the plugin, login to your Dashboard. Then go to “WordPress Dashboard > Plugins > Add New” as shown screenshot below. Search “Nepali Date Converter”.  Hit the Install Now button and Activate the plugin. You can also download this plugin from the WordPress repository and simply upload via FTP in your Plugins directory inside the WP-Content folder. Do what is ease to you.

ALSO READ  How to Write Blog Post with SEO YOAST Plugin

display-current-nepali-date-in-wordpress


Step 2. Insert The Code To Display Current Nepali Date

After successfully installing and activating the plugin, we are ready to roll in. If you want to display the Current Nepali Date on the top of the page, open your header.php file and insert the below code where necessary. Here we are using do_shortcode to display shortcode via PHP function.

 <div class="nepali_date date">
   <?php echo do_shortcode( '[ndc-today-date disable_today_eng_date="1" title="" result_format="Y F j, l"]' ); ?>
 </div>

Step 3. Viewing Nepali Date in the front end

After the Plugin has been successfully installed and the shortcode has been used, you will see Current Nepali Date displayed at the top of your web page.

Display Current Nepali Date in WordPress

If you want to display the Current Nepali Date or English Date in your Widget, then there is already Available Widgets for this plugin. Go to Appearance – > Widgets. You will see it yourself. There is also the available widget to convert Nepali to English Date and Vice Versa. See the Screenshot Below of Widget:

Display Current Nepali Date in WordPress

If you configure your widgets properly, you will see the Nepali Date Converter and Today’s Date appearing on your sidebar as Screenshot below:

Display Current Nepali Date in WordPress

That’s it. If you like this tutorial, hit the share bottom below. Or if you know any other plugins or trick that converts English date to Nepali date, comment in the form below.