We'll create fresh WordPress site with Nordic Name Days installed. You have 20 minutes to test the plugin after that site we'll be deleted.
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.
Here is how you use shortcode in other languages.
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]' );
}
?>