• Hey guys! I’m trying to customize a quiz’s result page, but unfortunately the only possible way would be to make the result shortcode as part of an “a href”, such as:

    <a href="https://sitedotcom/[result_shortcode]">
    in which case if the shortcode would display “25”, the link would be sitedotcom/25.

    I’ve researched for hours and found a few workarounds, although none that applied to my situation, as those either needed productIds, page numbers and such. Any ideas? Thank you!

    • This topic was modified 3 years, 2 months ago by neval123.
    • This topic was modified 3 years, 2 months ago by neval123.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What plugin are you using? It might have its own linking shortcode.

    Thread Starter neval123

    (@neval123)

    It’s Thrive Quiz Builder and unfortunately it doesn’t seem to have anything like that. ??

    • This reply was modified 3 years, 2 months ago by neval123.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You’re using a commercial/premium plugin, so please use their official support channel. We feel they are best equipped to support their products.

    https://thrivethemes.com/contact/

    Commercial products are not supported in these forums.

    You could create your own shortcode, of course, and put it in a simple plugin to create the link.

    Thread Starter neval123

    (@neval123)

    I understand, but this is a general question, not particular to this plugin and besides, they’d say it’s not something they can help with, as it’s custom coding. Can I still not ask it here?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you want specific help with that plugin, ask them.

    I just tested using a shortcode in a link in the editor and it worked:

    “[year]” is one of my own shortcodes. The result is

    So what you’re doing should work if you’re doing it in the editor.

    If you’re doing it in PHP, then you need to put the shortcode inside the function “do_shortcode()”.

    Thread Starter neval123

    (@neval123)

    Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Shortcode content inside a link’ is closed to new replies.