Help with a function to create a shortcode September 15, 2022 by Tarik Billa You want add_shortcode(). Read more about add_shortcode() in the Codex.