Title: Post Country
Author: peterwsterling
Published: <strong>Lidosun 23, 2008</strong>
Last modified: kɔnyasun 21, 2013

---

Search plugins

![](https://ps.w.org/post-country/assets/banner-772x250.jpg?rev=777421)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/post-country_d0c9bb.svg)

# Post Country

 By [peterwsterling](https://profiles.wordpress.org/peterwsterling/)

[Download](https://downloads.wordpress.org/plugin/post-country.zip)

 * [Details](https://fon.wordpress.org/plugins/post-country/#description)
 * [Reviews](https://fon.wordpress.org/plugins/post-country/#reviews)
 *  [Installation](https://fon.wordpress.org/plugins/post-country/#installation)
 * [Development](https://fon.wordpress.org/plugins/post-country/#developers)

 [Support](https://wordpress.org/support/plugin/post-country/)

## Description

This plug-in allows you to record a country against your posts.
 For example the
country that the post talks about, the event took place in, the location you are
writing the post from, etc. Your imagination is the limit… Once a post is tagged
with a country the plug-in allows flag icons to be added to your blog’s pages with
simple additions to your template files. Country icons can be clicked on to take
the user to a list of posts from that country. There’s also a sidebar widget that
creates a popup to navigate to posts from that country.

Please consider supporting ongoing development of this plugin by taking a look at
the [enhanced mapping version of this plugin](http://www.sterling-adventures.co.uk/blog/2013/09/01/wordpress-mapping-plugin/)
available at the [plugin’s home page](http://www.sterling-adventures.co.uk/blog/2008/04/01/post-country-plug-in/).
The enhanced version offers a neat mapping interface to your blog with many features
such as geo-location of your posts, showcasing [featured images](http://en.support.wordpress.com/featured-images/)
from your posts, presentation of [GPX](http://en.wikipedia.org/wiki/GPS_eXchange_Format)
tracks, GPX elevation graphs, recording countries against your posts, and much much
more.

#### How to record a Country against a Post

To add a country to post use the _In which Country was the Adventure?_ box select
the country from the dropdown.
 There are also more instructions etc. on this [page](http://www.sterling-adventures.co.uk/blog/2008/04/01/post-country-plug-in/)…

## Screenshots

[⌊An example posts page showing the new post attribute; the country it writes about.⌉⌊
An example posts page showing the new post attribute; the country it writes about
.⌉[

An example posts page showing the new post attribute; the country it writes about.

[⌊An example of the mapping interface available in the enhanced mapping version.⌉⌊
An example of the mapping interface available in the enhanced mapping version.⌉[

An example of the mapping interface available in the enhanced mapping version.

[⌊An example of the GPX file mapping available in the enhanced mapping version.⌉⌊
An example of the GPX file mapping available in the enhanced mapping version.⌉[

An example of the GPX file mapping available in the enhanced mapping version.

[⌊An example of an elevation graph from a GPX trace available in the enhanced mapping
version.⌉⌊An example of an elevation graph from a GPX trace available in the enhanced
mapping version.⌉[

An example of an elevation graph from a GPX trace available in the enhanced mapping
version.

## Installation

 * 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 />

 * You can also include the same popup list of countries used in the widget on your
   pages with this `<?php country_list_countries(); ?>`.

## Reviews

![](https://secure.gravatar.com/avatar/efa73684892a00d823ce86de8b69b9aa0bdd72a8d960021b78e18f19577b17ff?
s=60&d=retro&r=g)

### 󠀁[good](https://wordpress.org/support/topic/good-1945/)󠁿

 [ali1010](https://profiles.wordpress.org/ali1010/) zosun 3, 2016

How does it work? my web site <a href=”http://chashnee.ir/ http://chashnee.ir/”>
Cooking

 [ Read all 1 review ](https://wordpress.org/support/plugin/post-country/reviews/)

## Contributors & Developers

“Post Country” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ peterwsterling ](https://profiles.wordpress.org/peterwsterling/)

[Translate “Post Country” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-country)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-country/), check
out the [SVN repository](https://plugins.svn.wordpress.org/post-country/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/post-country/) by
[RSS](https://plugins.trac.wordpress.org/log/post-country/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **2.4**
 *  Last updated **13 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **3.6.1**
 *  Language
 * [English (US)](https://wordpress.org/plugins/post-country/)
 * Tags
 * [country](https://fon.wordpress.org/plugins/tags/country/)[flags](https://fon.wordpress.org/plugins/tags/flags/)
   [images](https://fon.wordpress.org/plugins/tags/images/)[search](https://fon.wordpress.org/plugins/tags/search/)
   [widget](https://fon.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://fon.wordpress.org/plugins/post-country/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/post-country/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/post-country/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/post-country/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/post-country/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/post-country/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/post-country/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/post-country/reviews/)

## Contributors

 *   [ peterwsterling ](https://profiles.wordpress.org/peterwsterling/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-country/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.sterling-adventures.co.uk/blog/wordpress-plug-ins/)