Passing function arguments via a shortcode

You can absolutely pass arguments to your shortcode, but not in the method you described. Please see the Shortcode API (https://codex.wordpress.org/Shortcode_API) Your shortcode with arguments will look more like: [vertical_posts label=Answers category=answers number=4]