Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
We use Sight Orign Page Builder for our Premium themes. Colums and stylesheets are showing with template pages.
But Colums not showing when page displayed with following code
$page = get_post(’12’);
echo apply_filters(‘the_content’, $page->post_content);
may be css not loading. How to fix the issue ?
Hi Ceylon,
To do this, I would use the following PHP:
$post_id = 12; if ( class_exists( 'SiteOrigin_Panels' ) && get_post_meta( $post_id, 'panels_data', true ) ) { echo SiteOrigin_Panels::renderer()->render( $post_id ); // this will bypas the_content and all for stylesheets to be output correctly } else { echo apply_filters( 'the_content', get_post( $post_id )->post_content ); }