BACK TO DIRECTORY

International Namedays

by kgyt

5.0
(2 ratings)

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

Examples

Examples

See code in HTML output and in template...

See code in HTML output and in template...

Plugin Details

Active Installs
300
Total Downloads
7,470
Version
2.3
Requires WP
1.0
Requires PHP
—
Tested Up To
3.9.40
Added
2009-04-06
Last Updated
2014-07-20 12:46pm GMT

Ratings

5
2
4
0
3
0
2
0
1
0