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.

Get the content of a page with div.

10 years ago · Last reply by Greg Priday 10 years ago

Hello, I have a little problem, I try to get the content of a page.

This is for the footer, I created an option in the customizer to use the default footer widgets or select a page.
That way footer can be created with the page builder by siteorigin.

I tried several things, only 2 work but there is a problem.

1. With the following code:
echo do_shortcode( get_post_field( ‘post_content’, $page_id ) );
The content of the page is displayed, but there is not the div (panel-grid-cell, so-panel) that wraps the content.

2. With the following code:
echo do_shortcode( the_content( $page_id ) );
With this code, it works well, the div are present, but it shows me the contents of the page I am, if I am on the contact page, it shows me the contents of the contact page.

Can you help me?

Thank you a lot :)

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Greg Priday Staff 10 years, 1 month ago

    Hi Nick

    Rather than use a page created with Page Builder, I’d suggest telling your users they can use a Page Builder Layout Widget in their footer. This is essentially an entire Page Builder as a standard WordPress widget.

    This will give your users the best experience. They’ll be able to create all that footer content without leaving the customizer.

  2. Nick 10 years, 1 month ago

    Hello, you solved my problem and simplified solution, thank you :)

  3. Greg Priday Staff 10 years, 1 month ago

    Very glad to hear it Nick!

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