Enable Shortcodes in other Shortcode Attributes
-
Hello,
I’m looking for a way to use a shortcode as the attribute of another shortcode. I’ve already created a shortcode to display a user’s display name (defaults to currently logged in user, or ID can be specified for specific user).
EX: [display-name] shows currently logged in user’s display name or [display-name id=”1″] would show user 1’s display name and so on.
What I’m trying to do is enable the ID parameter to process shortcodes. It would go something like this…
[display-name id=”[shortcode]”]
The embedded shortcode would output a number for the user ID parameter which would then be used in the [display-name] shortcode to show the corresponding user’s display name. Is this possible?? Can someone please help me with this???
Thanks in advance,
Jon
- The topic ‘Enable Shortcodes in other Shortcode Attributes’ is closed to new replies.