I cannot solve this issue how to add the widgets as shortcodes. What are the steps after installing the wordpress plugin? Where do I do and Do i have to paste any code on my theme editor. Is there any kind of video showing what to do. I would like to add one of my widgets to the page/post content.
]]>Hi,
I think I solved everyone’s problem, the empty dropdown.
The \wp-content\plugins\widget-instance\js\wysiwyg.js has problem when AJAX sends back the widget title as empty or NULL. If null, the title’s length can not be queried, so your script fails, and the javascript execution stops.
Change line 18 as following, remove the length attribute. In this context, it is enough to test if widget.title is true-ish, no need to ask for its length. Here is my diff before/after, with the removed .length:
- var ti = (widget.title.length) ? ' (' + widget.title + ')' : '' ;
+ var ti = (widget.title) ? ' (' + widget.title + ')' : '' ;
I made this modification in the plugin, then all the widgets appeared (before there was none in the dropdown).
I suggest, the plugin author should provide this fix in the next update.
Regards,
Immánuel
excellent plugin!
2 quick questions:
1) any chance you can somehow retrieve only an instance’ stored option (e.g., title or description)?
2) any chance you can pass an argument? e.g.,
$args = array( 'calling_from' => 'outside' );
do_action('widget_instance', 'superplugin' , $args);
so then you can check this from within the widget?
many thanks!
]]>I have identical code in 2 sites. I am stringing 9 widgets together.
Each block of code looks like this
<div class="widget-row">[widget_instance id="widget_sp_image-76" format="0"][widget_instance id="widget_sp_image-21" format="0"][widget_instance id="widget_sp_image-22" format="0"][widget_instance id="widget_sp_image-23" format="0"][widget_instance id="widget_sp_image-24" format="0"][widget_instance id="widget_sp_image-25" format="0"][widget_instance id="widget_sp_image-26" format="0"][widget_instance id="widget_sp_image-27" format="0"][widget_instance id="widget_sp_image-28" format="0"]</div>
One one site the code rendered uses <ul>
and <li>
tags (one <li>
for each widget) – This one displays correctly
On the second site the code rendered uses <a>
and <div>
tags. (no
<ul>
and <li>
tags – This one does not display correctly.
I have compared my local css and every thing else i can think of but i can’t see anything that would cause this.
Any help would be greatly appreciated.
Thanks,
Steve
I am not able to see the widgets in my dropdown menu. I am trying to find a workaround. I notice that in a recent revision you say
0.9.1
Can now select a widget by it’s title as well as its id. The title is in parenthesis after the id.
Could you give an example?
Do i still need the instance id?
If so, how does the selection by title help?
Thanks,
Steve
There is already a closed thread about this here but the problem still exists.
Would you please investigate?
]]>And not even that, just below where I call a widget there appears a “Logged in as admin. Log out?” line. Why is that? Rest works fine, but this extra content is not wanted.
]]>I love his plugin, but wondered if it’s possible to display the Sidebar and Widget Titles in TinyMCE display, and no the IDs? With a large number of widgets, it’s quite difficult to determine which is which.
Any advice on this would be appreciated.
Thank you.
]]>I installed but do not see any widgets in the Page or Post editor WYSIWYG drop-down. I’m on a test site and added some widgets to a sidebar thinking that would trigger it but still nothing. How the heck does this thing work?
]]>Hi Ben,
Love the plugin, but I have found that the formatting, especially the title, is gone when the widget is not already published elsewhere (by inserting. I discovered this when deactivating a widget. To correct this I created a “secret” sidebar where I publish the widgets, hoping the formatting would be back, but unfortunately it isn’t.
Can you check this out? I cannot set the widget title in any way to a title because there’s no classes or anything else left when published.
Hope you get what I mean? ??
Thanks,
Tom
Appreciate any feedback, im fairly easy I will accept both bugs or compliments! ??
]]>