can you add content egg shortcodes to list ?
]]>@scottdeluzio
Hi Scott,
I have long wanted to be able to insert a complete shortcode to the editor, so I was glad to see your plugin.
However, it stops short of being totally useful.
I have written a proof of concept for a way to get the attributes of a shortcode, and I wondered if you could test it out and make it robust to add to your plugin.
I imported your plugin to GitHub, but it stopped short of full import, and left me with version 1.0.3 or something like that. I created a branch for my concept here: https://github.com/joyously/shortcode-lister/tree/feature-standalone
(I was originally trying to do this for inclusion in ClassicPress and had the wrong idea, so the name was changed from lister to list.)
I think it needs testing on different PHP versions, as I’m not sure that the output remains the same. It needs the booleans filtered to 0 or 1; you can see this in either the [embed] or [video]. I intended that there be JS for the editor to better handle the editing of the shortcode, but didn’t get to that part.
The reason I did this the way I did is it made sense to deal with a keyed array in PHP rather than JS, and the var_export
function made it so easy regarding types and quotes, etc.
I hope you see the value of this and can incorporate it into your plugin.
Joy
I have too +1 the arg return, 100% agree it might be too intensive though. Maybe a small admin for notating and/or hiding shortcodes would be very useful. I have a bunch of WooCommerce shortcodes that are never reused after initial setup. I need this for phonenumbers, hours, company name etc. stuff that is reused from time-to-time in normal page/post creation. Not EVERY potential shortcode. Would help my staff to not trudge through 20shortcodes to find the hours one. When I could hide all but the normal daily drivers.
Or even easier fix, add the shortcode name as a class wrapping the list item. Than I could just display:none the ones I don’t want to display to everyone.
]]>In the topic I started yesterday, I forgot to mention the main reason I started the thread. The plugin would be much more useful if it listed all the arguments that each shortcode can take. I reckon thats not very difficult to do. I haven’t looked at the code yet so I don’t know how you get the names of every shortcode but I’ll take a look and see if its a big jump to get the names of the arguments along with it.
]]>This is a suggestion on how to enhance this plugin, not a support thread. Anyhow, this is a really useful plugin, I added it to my list of essential plugins for working with WP. What would make this a whole lot better is if it doesn’t just tell you the name of the shorttag, but also has like a link that will give you debugging into such as what plugin a shorttag came from, the name of the file(s) that called the shorttag function etc. Should be pretty easy to do. For jetpacks shorttags, it would be pretty easy to get the information about what the shorttag does from the files in the jetpack plugin folder. The more info you provide, the more useful this plugin becomes. Thus, the more people will be donating to ensure you keep developingthe plugin.
After that, you could add a shortlist tags link in the settings menu, then make a proper settings page, in there you can let people enter and save their own custom shorttags. Again, not difficult to do, but will make the plugin much more useful. I may take a crack at upgrading the plugin myself, I’ll give you the code if I do get anything working.
]]>Does this plugin also list theme shortcodes, or only plugin shortcodes?
]]>