Custom Fields
Support General Using shortcode as hyperlink

  • Creator
  • #11141

    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?

Viewing 1 replies (of 1 total)
  • Author
  • #11205
    Anh Tran

    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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.