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 Ledger | vote-ledger |
| Legislation Log | legislation-log |
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 Ledger | neut/vote-ledger |
| Legislation Log | neut/legislation-log |
Supported Shortcodes
| Widget | Shortcode |
|---|---|
| Bill Preview | [neut_bill_preview ...] |
| Vote Ledger | [neut_vote_ledger ...] |
| Legislation Log | [neut_legislation_log ...] |
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 federal or state bill.
Shortcode:
[neut_bill_preview ...]
Shared Bill Preview Attributes
instance_id
Unique widget placement ID.
source
Omit or send congress for federal bills. Send state for state bills.
article_id
Optional tracing value.
colorway
Optional style selection.
Congress Bill Preview Attributes
Required when source is omitted or source="congress":
bill_type
Bill type.
bill_number
Positive bill number.
congress
Positive Congress number.
temp_text_url
Congress-only HTTPS fallback bill text URL.
temp_title
Congress-only fallback title for same-day bill coverage.
State Bill Preview Attributes
Required when source="state":
source
Enables state bill preview mode.
state
Two-letter state or territory code.
bill_identifier
Full visible bill identifier.
session
Optional legislative session identifier.
Bill Preview Examples
Congress example:
[neut_bill_preview
instance_id="bill-preview-article-123-main"
source="congress"
bill_type="HR"
bill_number="1"
congress="119"
article_id="article-123"
colorway="Default"]
State example:
[neut_bill_preview
instance_id="bill-preview-ca-ab-123"
source="state"
state="CA"
bill_identifier="AB 123"
session="2025"
colorway="Default"]
Vote Ledger
Use this widget to show House roll call votes for a representative, or a general House roll call feed.
Shortcode:
[neut_vote_ledger ...]
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 Ledger 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-ledgercurrently supports House roll call votes only. Senate recorded votes are not available in this widget yet.
Vote Ledger Examples
Representative example:
[neut_vote_ledger
instance_id="vote-ledger-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_ledger
instance_id="vote-ledger-general-feed"
congress="119"
limit="5"
colorway="Paper"]
Legislation Log
Use this widget on an issue or policy page. It supports three backend-backed modes:
congress(default whensourceis omitted): Congress parent-subject ledger or Congress saved custom subject filterstate: statewide state bill ledger
Existing Congress embeds may continue omitting source. New generated examples should include
source="congress" for clarity.
Shortcode:
[neut_legislation_log ...]
Legislation Log Attributes
instance_id
Unique widget placement ID.
source
Omit or send congress for Congress mode. Send state for the state bill ledger.
page
Defaults to 1 if omitted.
limit
Defaults to 10 if omitted.
colorway
Optional style selection.
congress
Required for Congress mode.
subject
Required for Congress parent-subject mode. Must match a supported subject, including All.
custom_subject_filter_id
Required for Congress custom-filter mode. Tenant custom filter UUID.
status_filter
Defaults to All if omitted.
member_type
Optional member targeting. Must be Representative or Senator.
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.
state
Required for state mode. Two-letter state or territory code.
show_member_hero
Optional display flag. Congress only.
show_subject_filter
Optional display flag. Congress only.
show_status_filter
Optional display flag. Congress only.
Send exactly one of subject or custom_subject_filter_id in Congress mode. Do not send both.
Arbitrary free-text custom subjects are still not supported. custom_subject_filter_id refers only
to saved tenant filters configured in Neut.
Legislation Log 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 Log State Rules
- State mode requires
source="state",state,subject="All", andstatus_filter="All". - State mode must not include
congress,member_type,last_name,state_code,district, orcustom_subject_filter_id. - State mode hides subject/status filter controls in the widget UI.
Legislation Log Examples
Representative Congress example:
[neut_legislation_log
instance_id="legislation-lofgren-health"
source="congress"
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 Congress parent-subject example:
[neut_legislation_log
instance_id="legislation-health-general"
source="congress"
congress="119"
subject="Health & Social Welfare"
status_filter="All"
limit="10"
colorway="WashedSage"]
Congress custom filter example:
[neut_legislation_log
instance_id="legislation-healthcare-access"
source="congress"
congress="119"
custom_subject_filter_id="550e8400-e29b-41d4-a716-446655440000"
status_filter="All"
limit="10"
colorway="WashedSage"]
State bill ledger example:
[neut_legislation_log
instance_id="legislation-ca-activity"
source="state"
state="CA"
subject="All"
status_filter="All"
page="1"
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