web_page_content Shortcode
The web_page_content shortcode renders the dynamic content component.
The attributes below match the current Page Builder controls and public output. Use raw syntax only for reviewed content that cannot be maintained through the visual controls.
Usage
[web_page_content]
Attributes
| Attribute | Default | Accepted values | Purpose |
|---|---|---|---|
type |
other_post_content |
other_post_content, custom_meta, post_title, permalink, published_date, updated_date, featured_image, image_stored_in_meta |
Selects the rendering or behavior variant consumed by the shortcode. |
page_content |
— | A value selected from WordPress | Choose the page to display. Available when type is other_post_content. |
custom_meta |
— | String unless stated otherwise | Controls the custom meta. Available when type is custom_meta. |
custom_meta_default |
— | String unless stated otherwise | Default text if the custom meta is empty. Available when type is custom_meta. |
custom_meta_prefix |
— | String unless stated otherwise | Text that will appear before meta value. Available when type is custom_meta. |
custom_meta_suffix |
— | String unless stated otherwise | Text that will appear after meta value. Available when type is custom_meta. |
custom_meta_icon |
— | String unless stated otherwise | Controls the custom meta icon. Available when type is custom_meta. |
image_size |
full-original-ratio |
Any registered WordPress image-size slug | Selects the generated featured-image size. Available when type is featured_image. |
image_from_meta_name |
— | String unless stated otherwise | Controls the meta name. Available when type is image_stored_in_meta. |
remove_wrapper |
— | yes |
Just render the content, no wrapper added with post ID etc. Available when type is other_post_content. |
device_visibility |
— | String unless stated otherwise | Applies the selected responsive visibility rule. |
el_id |
— | Valid unique HTML ID | Enter section ID (Note: make sure it is unique and valid according to w3c specification). Available when type is other_post_content or custom_meta. |
el_class |
— | String unless stated otherwise | If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file. |
post_title_with_link |
— | String unless stated otherwise | Sets the post title with link value consumed by this shortcode. |
Reusable block editing
When Other post content points to a reusable block, the backend builder preview displays the reusable block title and an Edit reusable block link. The link opens the linked block editor in a new tab so the page being composed remains open. WordPress permissions remain authoritative, so the edit link is available only to users who can edit the linked reusable block.
Verification
Test web_page_content with populated, empty and long result sets, and verify the selected source belongs to the current site. Pay particular attention to type and page_content.