Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
i need to create a theme, where on the main site multiple specific pages that contain page builder content are shown. the problem is, that the assets needed for the widgets aren’t enqueued this way.
the query looks similar to this:
$args = array( 'meta_key' => '_display_as_modal', 'meta_value' => 'no' ); $pages = get_pages($args); foreach ( $pages as $page ) { echo apply_filters( 'the_content', $page->post_content ); }
the pages show up correctly if they are accessed on their own via their uri. does anybody know how to do this and load the required assets correctly?
found the solution myself. here you go: