Home>Support>Multiple Colums not showing when page displayed with apply_filters()

Multiple Colums not showing when page displayed with apply_filters()

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 ?

expected – colum 1 | colum 2 | colum 3

output –
colum 1
colum 2
colum 3

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 7 months ago Ceylon Themes

    Found the answer recently, It may be helpfull to all, Page builders overrides the_content() function to add content.

    $page = get_post(’12’);
    echo apply_filters(‘the_content’, $page->post_content) not effetive getting the content.
    

    Insted of above Used WP_Query loop,

    	$result = new WP_Query($args);
    	while ( $result->have_posts() ) :
    	    $result->the_post();
    	    the_content();
    	endwhile; // End of the loop.
    
  2. 6 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Ceylon,

    I’m glad to hear you were able to find a solution.
    You can alter the_content by running with a priority that’s higher than the default (1).

    Please be sure to post another thread if you have any other questions.

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