Edit shortcode
-
Hi,
This might seem like a strange question, but is it possible to edit the shortcode? I realise at the moment it uses an id, for example:
[visualizer id=”1234″]
I have a template which shows a progress report. The idea is the administrator enters the shortcode for the relevant piechart depending on the progress made. I have a series of shortcodes that each refer to a pie chart showing 10%, 20%, 30%, 40% etc, but they are very random and I had to add instructions like this:
(DELETE THIS SECTION AFTER) Add shortcode as appropriate to key below: [visualizer id="1034"]? = 0% complete [visualizer id="1037"] ?= 10% complete [visualizer id="1039"] ?= 20% complete [visualizer id="1046"] ?= 30% complete [visualizer id="1054"] ?= 40% complete [visualizer id="1058"] ?= 50% complete [visualizer id="1062"] ?= 60% complete [visualizer id="1066"] ?= 70% complete [visualizer id="1070"] ?= 80% complete [visualizer id="1074"] ?= 90% complete [visualizer id="1078"] ?= 100% complete (DELETE THIS SECTION AFTER) [visualizer id="1070"]
It would be great to add instead something like this:
[visualizer id="0percent"] [visualizer id="10percent"] [visualizer id="20percent"] [visualizer id="30percent"] [visualizer id="40percent"] [visualizer id="50percent"] [visualizer id="60percent"] [visualizer id="70percent"] [visualizer id="80percent"] [visualizer id="90percent"] [visualizer id="100percent"]
And they just delete the ones appropriate and it would be easier to modify as the progress changes.
Fingers crossed this is possible – I wasn’t sure if I could modify the shortcodes directly in the database?
Thanks!
- The topic ‘Edit shortcode’ is closed to new replies.