How to Call Gallery shortcode from template PHP?

Instead of typing [gallery ids=“122,123,124”] in the content of a page. I want to call the same functionality from the PHP code in a template file.

do_shortcode is your friend.

easy as this one:

<?php echo do_shortcode('[gallery ids="122,123,124"]')'?>

I will worry about the id’s though…