Shortcodes output in the wrong order
the_time() is the problem here. It echoes its output. Shortcodes, effectively, happen in this order: The text containing shortcodes is parsed to find shortcodes. Each shortcode is executed and its output stored. Each shortcode is replaced with its output. The problem is that if you echo inside a shortcode, its output will be printed to … Read more