The page name shortcode will output the current page’s title. The advantage of this shortcode is simple. Anytime you change your page title for any reason, you won’t need to update the title inside the content as well.
Page Name Shortcode
Notice how the shortcode outputs this page’s title.