Home>Support>Page builder not outputting anything

Page builder not outputting anything

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].

Hello,

Thanks for creating such great plugin!
However on my new template PB is not outputting anything (or it displays just post content, which I don’t want) Im not using the default loop, just this:

		$screenContent = apply_filters( 'the_content', $screen->post_content );
		$screenContent = str_replace( ']]>', ']]>', $screenContent );

$screenContent is outputted to frontend.

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

  1. 10 years, 4 months ago Greg Priday
    Hi, I Work Here

    Hi Marcin

    Page Builder uses some standard WordPress content filters, which aren’t ever applied to $post->post_content. Either you’d need to set up the post data with setup_postdata, or you’d need to use the following technique to apply all the necessary filters.

    http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id

    • 10 years, 4 months ago Marcin Ciarka

      Sorry, but this renders the same code… :(

      	$content_post = get_post($screen->ID);
      	$content = $content_post->post_content;
      	$content = apply_filters('the_content', $content);
      	$screenContent = str_replace(']]>', ']]>', $content);
      

      Im outputting $screenContent. Normal (from normal editor) content is displaying correctly.

  2. 10 years, 4 months ago Marcin Ciarka

    I will check this out, thank you!

    W dniu 2015-03-09 o 14:41, Greg Priday pisze:

  3. 10 years, 4 months ago Marcin Ciarka

    Okay I got it working. I changed my foreach with the standard loop:

    	$content = get_the_content();
    	$content = apply_filters('the_content', $content);
    	$screenContent = str_replace(']]>', ']]>', $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