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_pages print page builder content correctly

Resolved 3 replies pluginplugin-page-builder
10 years ago · Last reply by Andrew Misplon 10 years ago

Hi i am trying to display the content created with site origin page builder through the get_pages function. but it doesn’t seem to work well for me it either doesn’t display the page builder html format or only the first page content repeated

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

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 10 years, 9 months ago

    Hi Xavier

    Thanks for reaching out.

    get_pages unfortunately isn’t passed through the_content filters. The easiest suggestion would be to use:

    https://codex.wordpress.org/Function_Reference/setup_postdata

    Hope that helps.

  2. Xavier Serrano 10 years, 9 months ago

    Ok cool ill see if i need that one i actually found another way by calling

    <?php     	
       echo apply_filters( 'siteorigin_panels_before_content', '<div class="content-holder">', $panels_data, $page_data->ID );
    echo siteorigin_panels_render( $post_id = $page_data->ID);
    echo apply_filters( 'siteorigin_panels_after_content', '</div>', $panels_data, $page_data->ID );
        ?>
  3. Andrew Misplon Staff 10 years, 9 months ago

    For sure. That’ll work :) Glad to hear you’ve made progress.

    All the best.

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