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 1 year, 6 months ago by Omar Dabbas.
    #105567
    Tom 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
    J 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.