Need help transforming echo to return for use with shortcode
There’s two ways to do it. First, you could put any HTML into a string, and concatenate it with ., and .= to add a string to an existing value. This way you can build up a large string and return it at the end: function torque_hello_world_shortcode() { $html=””; if ( function_exists( ‘get_coauthors’ ) ) … Read more