Shortcode to flag is an easy plugin, that will allow you to insert flags with shortcodes.
As of April 2026, Shortcode to flag is a WordPress flag plugin with 30 active installations and a 2.8/5 rating from 4 reviews. It has been downloaded 2.2K+ times in total. Requires WordPress 4.1+ and PHP false+. Available on WordPress.org since 2015. Last updated 11 years ago — may have compatibility concerns. Top alternative: SVG Flags – Beautiful Scalable Flags….
Shortcode to flag is an easy plugin, that will allow you to insert flags with shortcodes. For example, US will change to an American flag that won’t break your formatting. The height of the flags is 40pixels.
Put country code (in capital letters) to shortcode to display desired flag.
e.g. [US]
If you want to change height of the flags, do so in file flagstyle.css
| WordPress | 4.1+ requiredTested up to 4.1.42 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.