[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.

  1. pageid – The ID of the page containing the elements you want to display.
    • Options: Any numeric value. Specify one only.
  2. 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.
  3. 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.

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.
If the specified page doesn’t exist or has no elements, the shortcode will return empty content.