I’m trying to get several values from a shortcode. I tried several things without success.
The shortcode looks like this:
[myshortcode metakey="<field_key:key1, title:Title 1><field_key:key2, title:Title 2><field_key:key3, title:Title 3> ]
How would I get the field_key values? So in this case key1, key2 and key3?
Don’t try to shove everything into a single attribute, or a single shortcode even. The string parsing you have to do will get more and more complicated. Try this:
With this:
And create a shortcode for each case.