Public Ticket #4547841

Nested Shortcodes within b2b_content filter do not work

Closed
Comments
5 Tickets 1
Dimitri started the conversation 7 months ago on March 3, 2026 at 9:57am
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,762
KingsPlugins replied 7 months ago on March 3, 2026 at 11:48am

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
5 Tickets 1
Dimitri replied 7 months ago on March 4, 2026 at 6:38am

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

Thank! 

1

Sign In