This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Multiple Colums not showing when page displayed with apply_filters()

7 years ago · Last reply by Alex S 7 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

2
  1. Ceylon Themes 7 years, 3 months ago

    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. Alex S Staff 7 years, 2 months ago

    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.

Have a different question or issue?

Start New Thread