Home>Support>Can’t get multiple grids to show correctly on the same page

Can’t get multiple grids to show correctly on the same page

For various reasons we need to have two posts displayed on the same page; the main one is fine but the second one (let’s call it a footer) – that one is pulled manually using get_content() aaaaand it is all messed up:

For this example, the footer is set up as a single row with three columns of equal-size random text in pagebuilder.

1. If the main post/page does NOT use the siteorigin pagebuilder, then the content in the footer is stacked, even on full screen
2. If the main post/page DOES use the site siteorigin pagebuilder, then the content in the footer is laid out correctly on full screen but is NOT responsive (does not stack on mobile).

How to fix this? Specifically, how do I include content from TWO or more page builder posts on the same page without tearing a hole in the entire universe?

Thanks!

Also, bug on the support site: When I submitted this the first time it told me that the title cannot be longer than 12 words (why?) and then completely deleted the entire body of my original post. Le sigh…

This is a free community support forum. Replies are not guaranteed. If you need professional email support, please purchase a SiteOrigin Premium license.

  1. 8 days, 8 hours ago Alex S Hi, I Work Here

    Hi Peter,

    Can you please provide me with the complete code you’ve added to your footer to output the separate post? This will allow me to look over it and work out what’s going wrong.

    How to fix this? Specifically, how do I include content from TWO or more page builder posts on the same page without tearing a hole in the entire universe?

    Your best bet would be to use get_post. Here’s an example of this:

    echo apply_filters( 'the_content', get_post( $post_id )->post_content );
    

    If you would like to account for SiteOrigin Page Builder on the other page, use:

    if ( class_exists( 'SiteOrigin_Panels' ) && get_post_meta( $post_id, 'panels_data', true ) ) {
    	echo SiteOrigin_Panels::renderer()->render( $post_id );
    } else {
    	echo apply_filters( 'the_content', get_post( $post_id )->post_content );
    }
    
Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More