WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Nordic Name Days

Register shortcode [sk-nnd-name-days] to display current day of the weeek, day and name day.

This mini plugin register shortcode [sk-nnd-name-days] to display current name days in Nordic countries. Supported countries are Finland, Norway, Sweden and Denmark. By default shortcode [sk-nnd-name-days] displays current day of the week, day and name days in Finland. You can use use shortcode in posts, pages and text widget. This plugin idea is from International Namedays plugin.

Shorcode usage and attributes in other countries

Here is how you use shortcode in other languages.

  1. Norway: [sk-nnd-name-days language="nb_NO"]
  2. Sweden: [sk-nnd-name-days language="sv_SE"]
  3. Denmark: [sk-nnd-name-days language="da_DK"]

Other shortcode attributes are before, after, language, separator (default is |) and dateformat (default is l j.n.Y). You can use these attributes like this.

[sk-nnd-name-days language="nb_NO" before="Name days: " after="" separator="-" dateformat="j.n.Y"]

If you want to display name days in your theme template file, add this code.

<?php 
// Display name of the day
if ( function_exists( 'sk_nnd_name_days_shortcode' ) ) {
    
    echo do_shortcode( '[sk-nnd-name-days]' ); 
        
}
?>

Requires: 3.8 or higher
Compatible up to: 3.9.14
Last Updated: 3 years ago
Active Installs: 40+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.