Using shortcode as hyperlink

Support General Using shortcode as hyperlink

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11141
    @mindspark@mindspark
    Participant

    I have created a Register link for an event cpt, and want to display the field value (which is a URL) as a button.

    I have tried to use the following:

    <a href=" [rwmb_meta meta_key="event_register"] ">Register</a>

    the problem is that after saving the page, the shortcode is changed somehow to this

    <a href=" [rwmb_meta meta_key=">Register</a>

    what could be causing this issue? or is there something about the MB plugin that prevents me from doing this?

    #11205
    Anh TranAnh Tran
    Keymaster

    Hi Neil,

    Can you try changing it to:

    <a href="[rwmb_meta meta_key='event_register']">Register</a>

    I think it's the problem of using double quotes inside double quotes.

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