Page

[page] and [post] shortcodes can be used to keep large pages more organized and maintainable by separating them into multiple smaller pages.

[page] shortcode arguments
id:
ID of the page to render.
title:
Title of the page to render.
path:
Path of the page to render.
wpautop:
Automatically add paragraphs (default: true).
[post] shortcode arguments
id:
ID of the post to render.
title:
Title of the post to render.
wpautop:
Automatically add paragraphs (default: true).
Render by ID

This is a test page with ID of 1895.

Consectetur adipiscing elit.

Integer id nisi id velit aliquet scelerisque.

This is a test post with the ID of 1897.

Lorem ipsum dolor.

Sit amet.

A label in the test post

<page 1895>
<divider>
<post 1897>
Render by title

This is a test page with ID of 1895.

Consectetur adipiscing elit.

Integer id nisi id velit aliquet scelerisque.

This is a test post with the ID of 1897.

Lorem ipsum dolor.

Sit amet.

A label in the test post

<page title="Test page">
<divider>
<post title="Test post">
Render a page by path

This is a test page with ID of 1895.

Consectetur adipiscing elit.

Integer id nisi id velit aliquet scelerisque.

<page path="/test-page">
Disable wpautop
This is a test page with ID of 1895. Consectetur adipiscing elit. Integer id nisi id velit aliquet scelerisque.
This is a test post with the ID of 1897. Lorem ipsum dolor. Sit amet.
A label in the test post
<page 1895 wpautop="false">
<divider>
<post 1897 wpautop="false">

Leave a comment

Your email address will not be published. Required fields are marked *