开发者

Creating a shortcode with a WordPress multi-instance widget

http://codex.wordpress.org/Plugins/WordPress_Widgets_Api

I created a simple plugin as per this post and it works great as a multi-instance widget. I can not however get a shortcode working to place in my posts to display the widget. I added this at the end of the plugin code after the widget init, but no go. Any ideas on how to get t开发者_JAVA百科his working? thx!

add_shortcode("presskit-contact", "FooWidgetHandler");

function FooWidgetHandler() {$foo_output = FooWidget();return $foo_output;}


http://www.ilovecolors.com.ar/sidebar-widgets-shortcode-wordpress/

I found this which solved my problem

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜