bobbingwide / ebps-meetings

EBPS Meetings
0 stars 0 forks source link

[ebps-meetings] dependent upon `add_filter( 'widget_text', 'do_shortcode' )` #5

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

For the [ebps-meetings] shortcode to be expanded in widgets the do_shortcode() function needs to be run.

This is done by default for the Text widget but not the Custom HTML widget. It's also done for the Block widget, a new one to me.

Several plugins that are activated in ebps.org.uk include the following code

add_filter( 'widget_text', 'do_shortcode' );

these include: jquery-collapse-o-matic, user-submitted-posts and wordpress-simple-paypal-shopping-cart

If oik-unloader deactivates all of these plugins then the shortcodes are not expanded in Custom HTML widgets.

One solution would be to call the code ourselves. Another would be to always use the Text widget. If that's the case the CSS for styling the View calendar link needs to be changed ( see #2 ) Do this anyway.

For some more information see https://github.com/bobbingwide/oik/issues/83