Home>Support>Colums not showing with the_content,

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 10 months ago Alex S
    Hi, I Work Here

    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 );
    }
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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More