Custom Fields
Re-Envisioned
Support General Using shortcode as hyperlink

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 9 months, 3 weeks ago.

  • Creator
    Topic
  • #11141

    @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?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #11205

    Anh 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 1 replies (of 1 total)

You must be logged in to reply to this topic.