$id,
'post_type' => 'ultp_templates',
);
$the_query = new \WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
the_content();
}
wp_reset_postdata();
}
} elseif ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only Beaver Builder editor detection.
//phpcs:ignore
echo '
' . sprintf( esc_html__( 'Pick a Template from your saved ones. Or create a template from: %s.', 'ultimate-post' ) . ' ', '' . esc_html__( 'Dashboard > PostX > Saved Templates', 'ultimate-post' ) . '' ) . '
'; //phpcs:ignore
}
?>