I’m using 2 plugins in my wordpress blog – WP-Members and Dropbox Folder Share. I want to do something like this:
[dropbox-foldershare-hyno link="[wp-members field="some_link"]" ver_como='lista']
Is this possible?
I’m using 2 plugins in my wordpress blog – WP-Members and Dropbox Folder Share. I want to do something like this:
[dropbox-foldershare-hyno link="[wp-members field="some_link"]" ver_como='lista']
Is this possible?
Comments are closed.
You cannot use shortcodes like this. The parser would not read that like you want.
But there is a workaround: Hijack the shortcode
dropbox-foldershare-hyno
, run the callback function for thewp-members
on the link and pass the result to the originaldropbox-foldershare-hyno
callback.Sample code, not tested:
Now you can use the shortcode
[dropbox-foldershare-hyno]
and pass a value for thelink
attribute that should be converted from WP-Members before Dropbox Folder Share gets its hands on it.How we can do it in the near future 😉
When the
dropbox-foldershare-hyno
plugin becomes WordPress3.6
ready, we can do this:to overwrite the link attribute of shortcode:
shortcode, if the corresponding
shortcode_atts_{$shortcode}
filter isshortcode_atts_dfh
.You can read more about it here.
Nested shortcodes only work in certain specific circumstances:
do_shortcodes()
on the content that’s being returned. (ref: Shortcodes API: Nested Shortcodes)So, in your example, the answer is probably no, due to the first point above. But to be sure, you’d have to check the documentation for your specific plugins to see if the author gives any other options for how to use their particular shortcodes.