Descrição
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.
- Norway: [sk-nnd-name-days language=”nb_NO”]
- Sweden: [sk-nnd-name-days language=”sv_SE”]
- 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]' );
}
?>
Capturas de tela
Instalação
- Upload
nordic-name-days
to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
Perguntas frequentes
- Why was this plugin created?
-
I needed this feature and someone else might need it too.
Avaliações
Não há avaliações para este plugin.
Colaboradores e desenvolvedores
“Nordic Name Days” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresTraduzir “Nordic Name Days” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
0.2.1
- Add translation files.
0.2
- Everything’s brand new.