Colums not showing with the_content,
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 ?
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi 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 ); }Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.