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.
Need fast email support? Get SiteOrigin Premium
Replies
3Hi 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.
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 ); ?>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.