Using Shortcode for Link

Support General Using Shortcode for LinkResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43547
    Touchdown TechTouchdown Tech
    Participant

    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

    #43554
    PeterPeter
    Moderator

    Hello there,

    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.

    #43633
    Touchdown TechTouchdown Tech
    Participant

    Thanks Peter!

    This issue was resolved by using single quotes instead of double quotes in the shortcode.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.