Mount Points (Pro)
Mount Points allow you to add a Layout to a location that doesn’t support shortcodes and places that usually require editing PHP templates.
How to use it
Custom theme template
<?php
// even if your template is designed for a single page/CPT item
// you must use the loop, it's the default WordPress way
// (see default themes, like twentytwenty)
while ( have_posts() ) {
// it's a part of the loop, this call 'loads' data about the current post/CPT item
the_post();
// content can be printed either using the 'the_content()' function
the_content();
// or can be get using the 'get_the_content()' function,
// but only along with the "apply_filters( 'the_content', $content )" call
$content = get_the_content();
$content = apply_filters( 'the_content', $content );
// todo print post fields here
}Last updated