Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @htmadmin: Hi,

    There was a security update made to all version of WordPress going back to 3.7, which includes the very latest, 4.2.3. This security update affected the Shortcode API within WordPress. You can read about it here: https://make.www.ads-software.com/core/2015/07/23/changes-to-the-shortcode-api/

    Basically, the change affected how WordPress parses shortcodes, and in some cases it no longer recognizes them. In your case, more than likely this has to do with how you are using quotes around the shortcode. You might something like so:

    <a href="[custom_field field="product_url" this_post="1" /]">Product site</a>

    You have to make sure the quotes used for the shortcode attributes do not match the same quotes used for the HTML attribute (e.g. the “href” attribute). The above example should be changed to the following:

    <a href="[custom_field field='product_url' this_post='1' /]">Product site</a>

    (Note the shortcode’s attribute quotes were changed to single quotes so they differ from the use of double quotes for the ‘href’ attribute.)

    If you’re still wondering how to change what you’ve got, feel free to provide the code snippet of how you’re using the shortcode and I can make a more specific recommendation.

    Thread Starter HTMadmin

    (@htmadmin)

    Thanks for looking in to it. Sure enough, I’m using double quotes. I’ve downgraded for the moment but will be changing them and trying to re-upgrade.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not Working in 3.8.9 or 4.2.3’ is closed to new replies.