WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Post Country

This plug-in allows you to record a country against your posts.

  • Just put the complete plug-in directory into your WordPress plug-in directory and activate it.
  • Within the WordPress loop, use this <?php country_tag($post->ID); ?> in your index.php template file to show a post's country icon.
  • And this <?php country_tag($post->ID, false); ?> in your single.php template file to show the post's country icon.
  • Note, you'll need this <?php gobal $post; ?> declaration in your template files too if not already there.
  • The second parameter (the default true or false) determines if it is a short or long output. In the following examples the <IMG /> represents the flag icon.
  • Long - Location <IMG /> (Australia)
  • Short - <IMG />
  • The widget has a single option, a page. When set to one of your pages a link is shown under the popup list of countries in the widget. Following the link goes to that page where you might show a list of countries featured on your blog, or a map! A map is easily created with the enhanced version of this plugin.
  • You can also include the same popup list of countries used in the widget on your pages with this <?php country_list_countries(); ?>.

Requires: 2.5 or higher
Compatible up to: 3.6.1
Last Updated: 2013-10-21
Downloads: 4,072

Ratings

3 stars
3.8 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
0,1,0