• Hi,

    I’m building a onepage website, using the Pootle Page Building plugin. With get_page, I show every separate page on 1 page. To target the Pootle Page Builder content, I’m using the following code:

    $content = $GLOBALS['Pootle_Page_Builder_Render_Layout']->panels_render( $page_data->ID );

    When I try to implement a plugin like a carousel, where I need to use a shortcode, the shortcode doens’t work.

    For the shortcode to work, I need to use
    apply_filters('the_content', $page_data->post_content);

    Except, instead of (‘the_content …
    I use
    $content = $GLOBALS['Pootle_Page_Builder_Render_Layout']->panels_render( $page_data->ID );

    Does anyone perhaps know how I can add apply_filters to $GLOBALS[‘…

    Thanks so much!

    Martijn

Viewing 1 replies (of 1 total)
  • Hi Martijn,

    We take care of this in version 0.3.0

    You can put

    add_filter( 'pootlepb_content_block', 'do_shortcode' );

    Before accessing the pages to make the short codes work for ya, before 0.3.0 is released ??

Viewing 1 replies (of 1 total)
  • The topic ‘apply_filters to $GLOBALS help needed’ is closed to new replies.