Home>Support>Get_pages print page builder content correctly

Get_pages print page builder content correctly

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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. 9 years, 4 months ago Xavier Serrano

    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. 9 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More