• This question is similar to https://wordpress.org/…/woocommerce-shortcodes-in-table-entries, which was marked resolved.

    My client has two extensive TablePress tables containing WooCommerce products. After a recent series of core and plugin updates, the Add To Cart links in the tables stopped working, and now go to 404 pages. We use the add_to_cart_url shortcode in links like this <a href="[add_to_cart_url id="3855"]">.

    Has anything changed with WooCommerce or TablePress that would cause a conflict between these two plugins? Anyone else experiencing this issue?

    Any insight would be greatly appreciated.
    Thanks all!

Viewing 1 replies (of 1 total)
  • Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is a recent change in WordPress (thus, it’s totally unrelated to WooCommerce and TablePress), about how Shortcodes work when they are placed inside other HTML code (like a link). For various reasons, this can have security implications, which is why the behavior was changed.
    For more details, please see https://make.wordpress.org/core/2015/07/23/changes-to-the-shortcode-api/

    From what I can see, the “Shortcodes with Bad Quotes” section of that post applies to your Shortcodes, so that the suggested workaround might help.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘WooCommerce Shortcodes Break in TablePress’ is closed to new replies.