Adding shortcode to Plugin
-
Hi,
It is easy to add shortcode to a text widget by either using a plugin or adding the following to the functions file:
add_filter( ‘widget_text’, ‘shortcode_unautop’ );
add_filter(‘widget_text’, ‘do_shortcode’);This enables you to use a shortcode such as a date and then displaying a current or dynamic date in your widget sidebar.
Is there a way to actually enable shortcode execution (specifically for a dynamic or current date) for WordPress Popular Posts?
The actual shortcode is showing in the side bar and not the date.
WordPress does not support shortcodes in widgets or the sidebar as far as I know, unless you add a filter.
Can anyone help please?
Thanks.
- The topic ‘Adding shortcode to Plugin’ is closed to new replies.