WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

World Flags

Add country flags anywhere in your WordPress blog using simple shortcodes and/or widgets, or show visitor country flag based on their IP address.

Installation is the same routine as most WP plugins:

  1. Upload 'word-flags' folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Find the World Flags submenu under Options menu in your WordPress to change some settings or manually update the IP database.

Notice: You need to manually fetch the IP database the first time as the plugin does not include the files.

Using World Flags

  • Place [flag code="your-country-code/auto" size="16/24/32/48" text="yes/no"] in your posts. Example: [flag code="auto" size="48" text="yes"]
  • Drag the plugin widget in your Widgets menu and customize its options to show what you want.
  • If you want to show the country flag for your visitor comments, you can add the flag before or after the comment text along with your custom text or use <?php if (function_exists('world_flags_comment_flag')) echo world_flags_comment_flag($comment); ?> inside your comments loop in your template. $comment is the variable that holds the comment inside your loop.
  • You can add <?php if (function_exists('world_flags_insert_flag')) world_flags_insert_flag(); ?> inside your template to add flags anywhere. Optional argument $code can be provided to override auto mode. Example: world_flags_insert_flag( 'US' )

Requires: 2.9.2 or higher
Compatible up to: 3.0.5
Last Updated: 2010-8-23
Downloads: 4,292

Ratings

4 stars
4 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,2,2 100,1,1 100,2,2
0,1,0
0,1,0
100,1,1
100,1,1
0,2,0