This plugin displays namedays for different countries.
Author: | kgyt (profile at wordpress.org) |
WordPress version required: | 1.0 |
WordPress version tested: | 3.9.1 |
Plugin version: | 2.3 |
Added to WordPress repository: | 06-04-2009 |
Last updated: | 20-07-2014
Warning! This plugin has not 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.
|
Rating, %: | 100 |
Rated by: | 2 |
Plugin URI: | http://kgyt.hu/faq/namedays/ |
Total downloads: | 6 083 |
Active installs: | 400+ |
Click to start download |
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;
?>
Screenshots
FAQ