I have tried putting the shortcode [sp_HotTopicsTag] inside a text sidebar widget. But no topics are shown only the shortcode.
I do have the Template Tags and Widgets plugin installed and activated.
Any ideas?
I have tried putting the shortcode [sp_HotTopicsTag] inside a text sidebar widget. But no topics are shown only the shortcode.
I do have the Template Tags and Widgets plugin installed and activated.
Any ideas?
I am not big on shortcodes or widgets but isn’t the whole idea of a text widget the fact that you can include program code? So do you not have the wrap the shortcode in both php tags and a do_shortcode() call or something? I will need to look that up on the WP codex…
By the way – I was hoping you were going to come back to me on the tinymce/ipad question…?
The shortcode does also return anything when placed on posts.
Have replied on the other topic now btw.
Curious, Try the tag in the text widget if you would. We use it here (on our footer below) and we use:
<?php sp_HotTopicsTag('limit=6'); ?>
which, as you see, is working…
No go in a regular text widget but I have had success now with the Linkable Title Html and Php Widget by PepLamb plugin from wordpress.org
Yes – I think actually you need something like the php-exec plugin working to use the code in tex widgets as well so it sounds like this plugin offers something similar.
correct… shortcodes were designed in wp for pages and posts… and text widgets dont support php… nothing to do with sp – this is wp…
so to use template tag or shortcode in widget, you need a wp plugin that allows shortcodes or php in text widgets… with the latter, you can use either shortcodes or template tags…