
This plugin displays namedays for different countries.
Usage
kgyt_nameday( [DISPLAY], [COUNTRY], [TIMESTAMP] );
display (boolean) – if true (default) the nameday is visible
country (string) – select two letter countrycode (hu, pl, no, se, dk, cz, sk)
timestamp (int) – set the date or timezone
Usage in posts
Print today’s Hungarian nameday:
<!-- kgyt_nameday -->
or
Print today’s nameday from special country:
<!-- kgyt_nameday COUNTRY -->
or
Print Hungarian nameday of special time:
<!-- kgyt_nameday TIMESTAMP -->
or
Print customized nameday:
<!-- kgyt_nameday COUNTRY TIMESTAMP -->
country (string) – select two letter countrycode (hu, pl, no, se, dk, cz, sk)
timestamp (int) – set the date or timezone
Examples
Print today’s Hungarian nameday:
<?php kgyt_nameday(); ?>
Get yesterday Swedish nameday:
<?php
$nameday = kgyt_nameday( false, 'se', time() - ( 3600 * 24 ) );
echo $nameday;
?>
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.