跳到内容

British Member of Parliament Profile

v1.1.0

torres126 · 2020年4月20日 上架

Provides a way to query Parliament's database and return a profile of a British MP in the House of Commons based on their constituency.

正在使用
10 以下
评分
暂无
累计下载
3,140
最近更新
2020年9月1日
需要 WordPress 5.0+已测试到 5.5.25PHP 5.6.20+

贡献者

截图

An example usage of the profile in action - the specific design of the profile depends on the styles contained within your theme.
An example usage of the profile in action - the specific design of the profile depends on the styles contained within your theme.
Add a profile through the Shortcode block in the Block Editor
Add a profile through the Shortcode block in the Block Editor

This plugin provides a way to query Parliament’s database and return a profile of an MP in the House of Commons, using a shortcode. All you need is their constituency name or postcode, and the magic is done for you! Possible usage for this includes:

  • Campaigning for an issue and offering a way for readers to contact your local MP
  • Providing basic information on an MP relevant to your content or news story
  • Raising awareness about who to consult with regarding local issues

This plugin relies on the data offered by the third party service of UK Parliament Data to return the information and portrait in the profile based on a constituency. This data is licensed under the Open Parliament Licence – there are no additional Privacy Policies from UK Parliament Data relating to this plugin. In order to find your parliamentary constituency based on your postcode, the third party service of Postcodes.io is used.

Instructions

In order to render a profile, use the following shortcode structure: [profilemp constituency=”Leeds Central”]

Or with a postcode: [profilemp postcode=”LS1 4DY”]

Ensure that you replace the constituency/postcode with the one of the MP with the profile that you wish to render!

If you’re using a parliamentary constituency, you’ll need to use the exact name of it, and this can be inserted directly into the shortcode, even if there are characters such as brackets. For example, [profilemp constituency=”Richmond (Yorks)”] would work.

Using a shortcode can be done through the Shortcode Gutenberg block, or in the Classic Editor. You can render as many on a single page as you want, even with different MPs!

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums