Title: Aquiline Comment Country Flags for GeneratePress
Author: Bob Arnold
Published: <strong>2026 年 2 月 13 日</strong>
Last modified: 2026 年 2 月 13 日

---

搜索插件

![](https://ps.w.org/aquiline-comment-country-flags/assets/banner-772x250.png?rev
=3460431)

![](https://ps.w.org/aquiline-comment-country-flags/assets/icon-256x256.png?rev=
3460431)

# Aquiline Comment Country Flags for GeneratePress

 作者：[Bob Arnold](https://profiles.wordpress.org/bobarnold80537/)

[下载](https://downloads.wordpress.org/plugin/aquiline-comment-country-flags.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/aquiline-comment-country-flags/#description)
 * [评价](https://cn.wordpress.org/plugins/aquiline-comment-country-flags/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/aquiline-comment-country-flags/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/aquiline-comment-country-flags/#developers)

 [支持](https://wordpress.org/support/plugin/aquiline-comment-country-flags/)

## 描述

The **Aquiline Comment Country Flags** plugin affords a commenter on a **GeneratePress**
blog the option to affix a country flag to the right of their name in the comment
header. A new, optional field is added below the existing fields in the Comment 
submit form. The commenter is presented with an alphabetical list of the countries
which the site administrator has enabled in the plugin settings panel.

The plugin requires the active parent theme to be **GeneratePress v3.1.0 or later**,
since it relies on a custom action hook introduced with that version. The commenter’s
selection is “remembered” in the same way as the name and email, i.e., through use
of a cookie. The flag images are in the public domain, and are provided by [Flagpedia.net](https://flagpedia.net/).
That site works closely with Wikimedia Commons to maintain an up-to-date, worldwide
store of “official” flags.

In cases where a visitor to the site is unfamiliar with a displayed flag, and a 
pointer such as a mouse is available, they can hover over the flag to reveal the
country name. A long press on the flag in some mobile browsers, e.g. Android Chrome,
has been seen to produce a popup with the country name at the top.

One limitation is that the Country selection and flag display are not available 
to logged-in users. Since such users’ metadata (name and email) are handled internally
by WordPress, it was decided that support for the Country field in this case would
be unduly complex. The logged-in user would just need to log out, then revisit the
blog to make their flag selection.

Enabling the flag display via explicit user selection, rather than via IP-based 
geolocation, has several advantages. It affords greater privacy, and is immune to“
false” readings that could occur when a VPN or proxy is in use. Also, a commenter(
e.g. someone working abroad) may choose to identify with a country other than that
from which their internet connection originates.

### Credits

 * Flag Images: [Flagpedia.net](https://flagpedia.net)
 * License: [Public Domain](https://flagpedia.net/download#js-download)

## 屏幕截图

[⌊Comments with country flags affixed.⌉⌊Comments with country flags affixed.⌉[

Comments with country flags affixed.

[⌊New Country select field in the Comment submit form.⌉⌊New Country select field
in the Comment submit form.⌉[

New Country select field in the Comment submit form.

## 安装

 1.  Login to your site as an administrator and navigate to the Plugins admin panel.
 2.  Ensure that your active parent theme is **GeneratePress v3.1.0 or later**.
 3.  Click Add Plugin, and enter `Aquiline Comment Country Flags` in the search box.
 4.  When the plugin appears click Install Now, and then Activate.
 5.  The Plugins panel will now show the newly-activated plugin. Click Settings beneath
     the plugin name.
 6.  The Comment Country Flags Settings panel will appear. Check the box next to each
     country that a commenter should have the option to select.
 7.  Scroll to the bottom of the panel and click Save Options. Verify that the “Settings
     saved” notice appears at the top of the panel.
 8.  For subsequent access to the flag settings, click Settings in the left-hand admin
     menu and select the “Comment Flags” sub-item.
 9.  The height, vertical positioning, and other properties of the displayed flags 
     can be adjusted by adding the following to the child theme’s style.css, or in 
     Appearance => Customize => Additional CSS (default values are shown):
 10. `img.country-flag-img { height: 16px; vertical-align: -1px; border: 1px solid 
     silver; }`

## 评价

此插件暂无评价。

## 贡献者及开发者

「Aquiline Comment Country Flags for GeneratePress」是开源软件。 以下人员对此插件
做出了贡献。

贡献者

 *   [ Bob Arnold ](https://profiles.wordpress.org/bobarnold80537/)

[帮助将「Aquiline Comment Country Flags for GeneratePress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aquiline-comment-country-flags)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/aquiline-comment-country-flags/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/aquiline-comment-country-flags/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/aquiline-comment-country-flags/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/aquiline-comment-country-flags/)。

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**8 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.9.9**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/aquiline-comment-country-flags/)
 * 标签
 * [comments](https://cn.wordpress.org/plugins/tags/comments/)[country](https://cn.wordpress.org/plugins/tags/country/)
   [flags](https://cn.wordpress.org/plugins/tags/flags/)[generatepress](https://cn.wordpress.org/plugins/tags/generatepress/)
 *  [高级视图](https://cn.wordpress.org/plugins/aquiline-comment-country-flags/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/aquiline-comment-country-flags/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aquiline-comment-country-flags/reviews/)

## 贡献者

 *   [ Bob Arnold ](https://profiles.wordpress.org/bobarnold80537/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/aquiline-comment-country-flags/)