Is it possible to return content, and then also continue to do other things?
Please see my shortcode script below (which is intended to print the next 15 minute time interval, eg if the current time is 9:01pm, it would print 9:15pm).
I have managed to produce the correct output, however because I am
<span id="webinartime"></span> HTML, the dynamic content is showing up at the top of my WordPress content area, not in the location I type the shortcode.
I understand after reading that I need to
return my value to get it to appear in the right place… However,
I’m wondering if there is a way to have two functions in the shortcode, or nest them somehow… change my approach, etc?