This is a weird one, but I’m trying to embed an instance of your widget in a Gutenberg block via a shortcode. It works great, but the current page name isn’t being returned. When I inspect-element, I can see empty <a> tags with the correct URL for the current page in the href field, just no page name inside the link. I suspect the page name isn’t specifically referencing the current post_id, maybe in get_the_title()?
Thanks for your help! Cheers,
Michelle
OnPoint Plugins
Hi Michelle,
Can you tell me a bit more about how you are using the widget via a shortcode so we may recreate?
Thank you!
Michelle
I’m using Extended Widget Options (the paid version of Widget Options by Jeffrey Cardarang) which generates a shortcode for every widget. Like I said, everything works exactly as expected except for the title of the current page / post not being output. Thanks!
OnPoint Plugins
Hi Michelle,
As I am not familiar with this plugin not do I have access to it, would it be possible to send me the following:
Thank you!
Michelle
Sure thing. Here are the instructions, plugin link is (temporarily) available in the Private info area.
Once you’ve installed the plugin, go to Settings > Widget Options and Enable the “Shortcodes” option. Then go to Appearance > Widgets and add your Advanced Sidebar Pages widget using a setting that would show the current page in the list generated by the widget. After you click “Save” on the widget you’ll see a shortcode at the bottom which you can copy/paste into Page content. You’ll see that the sidebar-version of the widget outputs the current Page Title, but the embedded shortcode version does not.
Thanks for your help!
OnPoint Plugins
Good Morning Michelle,
So far I have been unable to recreate the issue. I’ve tried:
In all cases, the current page’s title displayed as expected in both the sidebar widget and the shortcode output. Whatever the issue is, it’s not a conflict between these two features.
One thing I can suggest is adding the following call to your active theme’s functions.php file to rule out another theme or plugin doing something with the title using the default filter:
Also, checking to make sure you are on the latest version of all 3 plugins may help as I am testing against the latest of all.
Michelle
Hi! So sorry for the slow response, somehow missed this when you first sent it. 🙂
I copied the site down and was able to do the full disable-everything test and discovered it was a conflict with the EditorsKit plugin. I’ll contact the developer and let him know.
Thanks so much for your hep!!!