Okay
  Public Ticket #4547841
Nested Shortcodes within b2b_content filter do not work
Closed

Comments

  •  1
    Dimitri started the conversation
    A lot of my content that i need to control the visibility between b2b/ b2c customers contains some shortcodes. For example, i wish to show the bulkorder form only to B2B customers. 

    Unfortunately I found that if i have any content with shortcodes, the shortcodes wont work and it will spit it out as plaintext. 

    Do you have a workaround? 

    1240467686.png
  •  2,724
    WebWizards replied

    Hi Dimitri,

    Thank you for purchasing B2BKing and for reaching out!

    The content shortcode has some limitations, but the nested shortcode in your example should work.

     

    When nesting shortcodes inside [b2bking_content], spacing around the inner shortcode can cause it to be output as plain text rather than being processed.

    Please try it like this, with no spaces around the inner shortcode:

    [b2bking_content show_to=b2b][b2bking_bulkorder theme=cream][/b2bking_content]

     

    Let me know if that works,

    Kind regards,
    Stefan

  •  1
    Dimitri replied

    All Good now. 
    After your suggestion to try no whitespace
    I realized that running it thru HTML minifier also solves the problem quickly!

    Thank!