Get Page URl when changing slug and permalink

Instead of hardcoding the slug, instead store the ID in an option and then use it to call get_permalink(). You can also avoid hardcoding the $baseUrl and rely on a nav menu or button block instead so that it automatically updates.

For example,

$page_id = .....; // maybe a `get_option` call or something else? Depends where you want to store the ID of the page
$baseUrl = get_permalink( $page_id );

In general, avoid storing URLs slugs or URL fragments, and don’t put “magic values” such as numebers and strings in your PHP code.

techhipbettruvabetnorabahisbahis forumutaraftarium24eduseduseduseduedusedusedueduedusedu