• Resolved threeaz

    (@threeaz)


    Hi there. Great plugin, but it doesn’t seem to be working properly for me anymore.

    I am trying to put a url params shortcode into an anchor tag.

    Here’s what i’ve entered: a href="[urlparam param='itemurl']"

    Here’s the output: %5Burlparam%20param=%27itemurl%27%5D

    in the URL, i’ve got a param called “itemurl” and it’s a full URL. But it’s not resolving properly inside the anchor tag.

    Can you help?

    https://www.ads-software.com/plugins/url-params/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Ran into same problem today. Solution i found was to change the href from double to single quotes

    so

    a hxxf='[urlparam param=’PDFURL’ /]’ rel=’attachment wp-att-3914′

    a hxxf=”[urlparam param=”PDFURL” /]” rel=”attachment wp-att-3914″

    I’ve removed the < > in this exmpale

    Plugin Author Jeremy B. Shapiro

    (@jeremyshapiro)

    Due to how WordPress changed their security settings, you can no longer embed urlparam (or any shortcode) in the middle of a quoted attribute. You’ll have to use one of the alternate usages described in the last paragraph here:
    https://www.ads-software.com/plugins/url-params/other_notes/

    Starting in the WordPress 4.2.3 security auto-update, you can no longer include shortcodes in HTML attributes. Previous to this WordPress update, you could set a field value like this: <input type="text" name="firstname" value="[urlparam param='FirstName']">. Now you have to set it like this: <input type="text" name="firstname" [urlparam attr="value" param='FirstName']> or [urlparam htmltag="input" type="text" name="firstname" attr="value" param="FirstName" /]. If you are still using this shortcode the old way, unfortunately, WordPress simply won’t process the shortcode and will return back the full shortcode text unprocessed.

    I have such function. What I should then change here, to make it work again?

    <script>// <![CDATA[
    tooteKood = ‘[urlparam param=”pood”]’;
    // ]]></script>

    The url is this:
    https://www.granito.ee/tellimine/?pood=Graniitvaas-7b-30x30x12cm

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘shortode not resolving in anchor tag’ is closed to new replies.