[page_builder_elements]
The shortcode displays elements from a page built with the Page Element Builder (using ACF).
Product
Shortcode Attributes
There are a number of shortcode attributes available which you can use to customize the output.
- pageid – The ID of the page containing the elements you want to display.
- Options: Any numeric value. Specify one only.
- include – List of element indexes (Page Element Row numbers) to include. Used to specify only the elements to show from the Page Element Builder.
- Options: Any numeric value. Use commas
,to separate.
- Options: Any numeric value. Use commas
- exclude – List of element indexes (Page Element Row numbers) to exclude. Used to specify only the elements to show from the Page Element Builder.
- Options: Any numeric value. Use commas
,to separate.
- Options: Any numeric value. Use commas
Example Usage
[page_builder_elements pageid="123"]
[page_builder_elements pageid="123" include="1,3,5"]
Results
| Example 1: This example displays all elements from page 123.Example 2: This example displays only elements 1, 3, and 5 from page 123. |