How can I add a button that’s linked to a page via page id rather than url, as the url may change and I don’t want to continually look for wherever there is a button to that page?

I only ask because I’ve looked and haven’t been successful in finding a solution. I’m assuming there’s a way to possibly do a shortcode in the href of an anchor tag that converts the page id to a url maybe?

Thank you!



This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer