Nov
12

Widget as shortcode – tips

Shortcode any widget  

Want to keep the widget title to identify it from other instances of the same widget, but want to hide the title when the widget is used in a shortcode (ie in a page)?

[do_widget widgetname title=false]

Want to reference a pre-existing widget configuration in a sidebar?

[do_widget id=widget_id sidebar=sidebar_name]

Share:
  • Digg
  • del.icio.us
  • Facebook
  • RSS
  • Technorati
  • Twitter

Related posts:

  1. Use a widget in a page or post with a shortcode Available  at wordpress now – This plugin allows you to use any widget as a shortcode in a page or...
  2. Subscribe2 widget markup and css Please refer to updated instructions. The wordpress subscribe 2 plugin is great. Version 4.9 just released – a wonderful alternative...
  3. Subscribe2 Widget Form – an alternate The wordpress subscribe 2 plugin is great – however the form in the widget bothers me. I have raised this ...
  4. Multiple Blogs, Domains with wordpress The configuration features now available in wp-config.php now offer you a great deal of flexibility if you have multiple domains...
  5. Widgetized headers and footers? Dynamic (widgetized) Sidebars are great, but would you not like to have a dynamic header and footer in your theme...

Leave a Comment