Shortcode use
-
New to WP so forgive me if I trip over my feet.
Some additional help text would be useful for users wanting to use the shortcake feature. Putting a shortcode in a page requires you to create an instance of the widget. If you are using one already in a sidebar no problem. If not, you must add it to ‘Inactive Widgets’ and configure it, generate shortcode. The problem with it Inactive Widgets is that it is at risk for being deleted with that handy ‘Clear Inactive Widgets’ button. Also, if you want to configure several with blank titles, you can’t tell them apart without opening them to see the location or shortcode.
I solved these issues with ‘amr shortcode any widget plugin’. This creates a pseudo sidebar for creating widget instances. It also has the feature title=false so the title can be there for identification but hidden on the page. The issue then is to know the name of the gm widget instance. It turns out to be googlemapswidget-n where n is the google maps widget id. Hopefully all this is true and useful for someone else looking to add a gmw to a page or a post. Some of this would be useful in the documentation.
The topic ‘Shortcode use’ is closed to new replies.