Services Plugin Shortcode position on page

By UUA Web Team
May 9, 2017, 1:36 pm EDT
I noticed when using the Services Plugin's [upcoming-services] shortcode that it will put the list of upcoming services before any content on the page. That is, if I have: <p>This should be the first line</p>
[upcoming-services] Then the list of upcoming services is displayed above the line that says "This should be the first line" instead of below it. That doesn't seem to be desirable behavior, perhaps it could be fixed in a future plugin update? Looking at upcoming-services-shortcode.php this may be a problem there. The function uuaservices_shortcode_upcoming_services is producing output instead of returning a value. The Wordpress Codex says that "Shortcode functions should return the text that is to be used to replace the shortcode" and that "Producing the output directly will lead to unexpected results".