Skip to content
pinegrow.com
Docs menuWordPress

Post Content

Post Content action displays the content of the current post.

PGLOOP

Post Content action adjusts to the element on which it is placed:

When used on <p> and similar elements

When placed on an element like paragraph, heading, span or link, the whole element will be replaced by the full content of the post.

For example, placing Post Title on a paragraph:

Post Content selection on a single paragraph p.content element, with the element tree showing the article and its Post content entry.

Will replace the whole paragraph element with the content of the post, that might include multiple paragraphs, images, and other elements.

Sweet breeze of Pine trees post with its short description and several paragraphs of body text rendered on the page.

The PHP code:

<?php the_content(); ?>

When used on container elements

When placed on any other element, for example on a Div, it will display the content of the post inside that element.

For example, adding Post Content on a div:

Post Content on a container div.content, with the element tree listing the paragraph children under Post content.

Will display the post content inside the <div> element with the PHP code:

<div class="content">
    <?php the_content(); ?>
</div>

PGACTIONCONFIG