Text widget not found
-
Greetings. I dragged a text widget into the “Widgets for Shortcodes” sidebar, named it “social” and put some text in it.
In a post, I used, “[do_widget social]” and it didn’t work. I hopped into debug and it listed text-6 as the ID of the widget in the “Widgets for Shortcodes” sidebar. I changed the shortcode to “[do_widget text-6]” and it still isn’t finding it.widgets_for_shortcodes: Widgets for Shortcodes has widgets: text-6Please advise. Thanks!!
-
Hi as per instructions:
[do_widget text] or [do_widget name=text] will also work now
or
[do_widget id=text-6]
It specifically does NOT work off the ‘title’ of the widget as it is way too risky. People implusively decide to change the title and then there would be even more support effort requested. the other 2 ways are more stable.
Awesome! Thank you. I knew it must’ve been something simple.
Sorry to bother you again. I’m having the same issue as before, but this time I’m doing id=text-8 and it still isn’t working.
1. Installed and activated the plug-in
2. Dragged a text widget to the Widgets for Shortcodes sidebar
3. Added some text into the text widget.
4. Forced a debug to get a list of the widget ids.Sidebar: widgets_for_shortcodes: Widgets for Shortcodes has widgets: text-85. Inside my PHP template, tried:
do_shortcode('[do_widget id=text-8]');and saved the PHP.
6. Reloaded my page. Nothing gets displayed.Really sorry about contacting you again. I know your widget is super simple to use, and like everyone else, I love it.
Hi morfie
did you SAVE and close the widget settings ?Navigate away, navigate back and check settings are there.
Then try displaying the widget again.
The topic ‘Text widget not found’ is closed to new replies.