1. In Editor – If we are calling shortcode in classic editor or any other page builder then we need to write code in brackets directly. Like
Example – [your shortcode goes here]
2. In template or PHP file – If we want to run shortcode in our template or any other place in our website then we need to use a WordPress pre-defined function that is do_shortcode.