
內容簡介
這款外掛提供一種方式,讓你可以使用短碼查詢國會資料庫並返回下議院議員的個人檔案。只要提供其選區名稱或郵政編碼,就能輕鬆完成!此外掛的可能用途包括:
- 爭取某個議題,並為讀者提供聯繫當地下議院議員的方式
- 提供與文章或新聞相關的議員基本資訊
- 提高當地議題諮詢對象的知名度
此外掛依賴第三方服務「UK Parliament Data」提供的資料返回檔案檔案中所需的選區相關資訊與議員照片,該資料根據「Open Parliament Licence」許可進行授權,使用此外掛並不需要添加任何 UK Parliament Data 的隱私政策。為了根據你的郵政編碼找出你所屬的議會選區,使用了第三方服務「Postcodes.io」。
使用說明:
為了呈現檔案,使用以下短碼結構階段:[profilemp constituency=”Leeds Central”]或[profilemp postcode=”LS1 4DY”]。請務必更換選區或郵政編碼為你所需呈現之議員的資料!
如果你使用的是議會選區,你將需要使用精確的名稱,即使選區名稱包含括號等符號,也可直接插入短碼中。例如,[profilemp constituency=”Richmond (Yorks)”] 仍可運作。
你可以通過 Gutenberg 短碼區塊或經典編輯器使用短碼,即使使用不同的議員,你也可以在同一頁面上呈現多個檔案!
外掛標籤
開發者團隊
② 後台搜尋「British Member of Parliament Profile」→ 直接安裝(推薦)
原文外掛簡介
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!
