Skip to main content
edited title
Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

apply_filters to $GLOBALS help needed

deleted 8 characters in body; edited tags
Source Link
Nicolai Grossherr
  • 18.9k
  • 8
  • 64
  • 109

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 );

$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);

apply_filters('the_content', $page_data->post_content);

Except, instead of ('the_content ...'the_content' I use:

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

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

Does anyone perhaps know how I can add apply_filters to $GLOBALS['...$GLOBALS['whatever'] so the shortcodes will work

Thanks so much!!

Martijn

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['... so the shortcodes will work

Thanks so much!!

Martijn

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['whatever'] so the shortcodes will work

Source Link

apply_filters to $GLOBALS help needed

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['... so the shortcodes will work

Thanks so much!!

Martijn