Technical Reference
Neut Widget WordPress Reference
Use this reference after the WordPress quickstart is working. It lists the widgets supported by the Neut Widgets plugin, the available shortcodes and blocks, accepted attributes, and the supported subject, status, and colorway values.
Start with WordPress Quickstart if you have not yet installed and configured the plugin.
For non-WordPress implementations, see the Customer Widget Quickstart, Customer Widget Reference, and Customer Widget Backend Guide.
Supported Widgets
| Widget | Widget ID |
|---|---|
| Bill Preview | bill-preview |
| Vote Breakdown | vote-breakdown |
| Legislation By Subject | legislation-by-subject |
The plugin uses the Neut production widget host automatically:
https://widgets.neut.us
Customers do not need to configure that manually.
Supported Blocks
| Block Title | Block Name |
|---|---|
| Bill Preview | neut/bill-preview |
| Vote Breakdown | neut/vote-breakdown |
| Legislation By Subject | neut/legislation-by-subject |
Supported Shortcodes
| Widget | Shortcode |
|---|---|
| Bill Preview | [neut_bill_preview ...] |
| Vote Breakdown | [neut_vote_breakdown ...] |
| Legislation By Subject | [neut_legislation_by_subject ...] |
Common Rules
instance_idis required for every widget.instance_idmay contain only letters, numbers, dot, underscore, colon, or hyphen.instance_idmust be 128 characters or fewer.congress,page,limit,bill_number, anddistrictmust be positive integers when provided.colorwaydefaults toDefaultif omitted.
Bill Preview
Use this widget when the page is about a specific bill.
Shortcode:
[neut_bill_preview ...]
instance_id
Unique widget placement ID.
bill_type
Bill type.
bill_number
Positive bill number.
congress
Positive Congress number.
article_id
Optional tracing value.
temp_text_url
Must be a valid https URL.
temp_title
Fallback title for same-day bill coverage.
colorway
Optional style selection.
Bill Preview Example
[neut_bill_preview
instance_id="bill-preview-article-123-main"
bill_type="HR"
bill_number="1"
congress="119"
article_id="article-123"
colorway="Default"]
Vote Breakdown
Use this widget to show House roll call votes for a representative, or a general House roll call feed.
Shortcode:
[neut_vote_breakdown ...]
instance_id
Unique widget placement ID.
congress
Positive Congress number.
page
Defaults to 1 if omitted.
limit
Defaults to 10 if omitted.
member_type
Must currently be Representative when targeting a single member.
last_name
Required only when targeting a single member.
state_code
Required only when targeting a single member. Must be a two-letter code.
district
Allowed only for Representative.
colorway
Optional style selection.
show_member_hero
Optional display flag.
Vote Breakdown Member Rules
- To target a single member, provide
member_type,last_name, andstate_codetogether. - For representatives,
districtis optional. - For a general House roll call feed, omit
member_type,last_name,state_code, anddistricttogether. vote-breakdowncurrently supports House roll call votes only. Senate recorded votes are not available in this widget yet.
Vote Breakdown Examples
Representative example:
[neut_vote_breakdown
instance_id="vote-breakdown-lofgren-ca-18"
member_type="Representative"
last_name="Lofgren"
state_code="CA"
district="18"
congress="119"
limit="5"
colorway="Paper"]
General feed example:
[neut_vote_breakdown
instance_id="vote-breakdown-general-feed"
congress="119"
limit="5"
colorway="Paper"]
Legislation By Subject
Use this widget on an issue or policy page, either for a single member or for general legislation on that subject.
Shortcode:
[neut_legislation_by_subject ...]
instance_id
Unique widget placement ID.
congress
Positive Congress number.
page
Defaults to 1 if omitted.
limit
Defaults to 10 if omitted.
subject
Must match a supported subject.
status_filter
Defaults to All if omitted.
member_type
Must be Representative or Senator when targeting a single member.
last_name
Required only when targeting a single member.
state_code
Required only when targeting a single member. Must be a two-letter code.
district
Allowed only for Representative. Omit for senators.
colorway
Optional style selection.
show_member_hero
Optional display flag.
show_subject_filter
Optional display flag.
show_status_filter
Optional display flag.
Legislation By Subject Member Rules
- To target a single member, provide
member_type,last_name, andstate_codetogether. - For representatives,
districtis optional. - For senators, omit
district. - For a general subject view, omit
member_type,last_name,state_code, anddistricttogether.
Legislation By Subject Examples
Representative example:
[neut_legislation_by_subject
instance_id="legislation-lofgren-health"
member_type="Representative"
last_name="Lofgren"
state_code="CA"
district="18"
congress="119"
subject="Health & Social Welfare"
status_filter="All"
show_subject_filter="false"
show_status_filter="false"
limit="10"
colorway="WashedSage"]
General subject example:
[neut_legislation_by_subject
instance_id="legislation-health-general"
congress="119"
subject="Health & Social Welfare"
status_filter="All"
limit="10"
colorway="WashedSage"]
Supported Subjects
Use one of these values for subject:
All
Animals & Agriculture
Business & Trade
Crime
Culture and Society
Education
Energy & Conservation
Finance & Taxes
Geopolitics
Government Operations
Health & Social Welfare
Human, Civil, & Immigration Rights
Infrastructure & Housing
Labor & Employment
National Security & International Affairs
STEM
Supported Status Filters
Use one of these values for status_filter:
All
Introduced
With First Chamber
With Second Chamber
Presented to President
Became Law
Vetoed by President
Passed Resolutions
Supported Colorways
Use one of these values for colorway:
Default
Dark
Paper
WashedSage
Slate
MonoLight
The plugin also accepts these aliases:
dark-mode
washed-sage
mono-light