Can you gave me an example of how you use the shortcode.
Of course
[pcustom name=”fieldname[name][url]” value=”http://www.mywebsite.com/category/file.mp3″%5D
I have written the above shortcode in the email body. Every other shortcode I have used works except this one, that “breaks” after the first brackets closes, so the output I find in my post is this text
[url]” value=”http://www.mywebsite.com/category/file.mp3″%5D
wether I use the “” or not for the custom field name.
Yes, sure!
This is the content of the post I am sending
[pdate “Nov 15, 2015”]
[pstatus future]
[pcustom name=”fieldname[name][url]”
value=”http://www.mywebsite.com/url/file.mp3″%5D
The shortcode “breaks” after the first bracket closes; the output I have in my post is this
[url]” value=”http://www.mywebsite.com/url/file.mp3″%5D
whether I use quotes to enclose the field name or not.
Looks like you’re running into a WordPress limitation. See https://codex.wordpress.org/Shortcode_API#Square_Brackets
What plugin are you trying to work with? I suspect that [pcustom] won’t really work even if the limitation wasn’t there since [pcustom] replaces the entire value and you are trying to update an element in the array.
Without the rest of the elements I suspect the plugin won’t work correctly.
Yes, thanks! I’ve seen the codex but I am afraid you’re right and it wouldn’t work anyway.
I am trying to work with PowerPress, which is a podcasting plugin, to see if I could add the mp3 url to the post in the correct field.