Using [alg_product_id] shortcode in element ID

Top WooCommerce & WordPress Plugins Forums Product XML Feeds for WooCommerce Using [alg_product_id] shortcode in element ID

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105566
    Aidas
    Guest

    Hi,

    Can I add [alg_product_id] shortcode into element id

    Thanks.

    • This topic was modified 6 months, 2 weeks ago by blankOmar.
    #105567
    blankTom Anbinder
    Moderator
    Plugin Support

    Hi Aidas,

    Sorry for a late reply. Yes, you can. To do that, you need to replace quotes " with HTML symbol code " (as in WordPress shortcodes are not allowed in HTML attributes), so:

    <item id=&quot;[alg_product_id]&quot;>

    And it will produce “normal” quotes in resulting XML, e.g.:

    <item id="123">

    Hope that helps.

    #105568
    blankJ Verk
    Guest

    Why isn’t this working with a custom attribute name?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.