WordPress do_shortcode() Works Directly but Fails With a PHP Variable
These two WordPress examples should behave the same way: and: do_shortcode() accepts a string containing shortcode markup. WordPress does not care whether that string was written directly inside the function call or stored in a variable first. The official function signature accepts $content as a string and processes registered shortcodes found inside it. Therefore, if … Read more