I'm looking to include a shortcode that builds a table of items and groups of items. For this I wish to be able to include an attribute multiple times or chain them together in some way. An example is I would like to do something like this:
[testcode item="item1" group="group1" item="item2" item="item3" group="group2"]
alternatively something like this could work:
The order the parameters appear must be maintained and multiple entries must be allowed. Any suggestions on how to accomplish this without writing completely custom shortcode handler routines?
An array does not seem to maintain the order between items and groups and associative arrays do not seem to be allowed in shortcodes. What I'm looking for is identifying and maintaining item1,group1,item2,item3,group2 order when I process it.