Support › General › Using Shortcode for LinkResolved
I am trying to use the [rwmb_meta…] shortcode in a hyperlink. It's not working. I'm not sure if it's a bug or if it's just the way WordPress works.
The value is correctly displaying if I use the shortcode as a paragraph, but not as the href.
Here's a 1-minute video demonstrating this and showing how I'm using the shortcode: https://sendspark.com/share/v10shki4dv1pj0yx
You can try to switch to tab Text and use this sample code to add the helper shortcode to the <a> tag.
test <a href="[rwmb_meta id='url_field']">content</a>
Remember to replace the double quotes with single quote in the shortcode.
This issue was resolved by using single quotes instead of double quotes in the shortcode.