Is this what you are looking for:
get_permalink( get_page_by_path( 'map' ) )
get_permalink( get_page_by_title( 'Map' ) )
home_url( '/map/' )
Related Posts:
- How to Remove Slug From Database?
- How can I add a page’s ID to its permalink using WP_Rewrite?
- get_permalink returning site home url instead of the url of slug being passed
- Page content doesn’t display when published but does when previewed as draft?
- How do I structure my permalinks in WordPress?
- WordPress slug issue with non-latin characters
- How can I reverse engineer a Permalink to Find the Page?
- Removing the redirect after changing a page’s slug
- Must slugs be unique?
- How does wordpress keep track of post id when post id is not used in permalinks?
- Stop WordPress from reserving slugs for media items?
- Change slug on post creation
- How can I store page ID in a post instead of other selected permalink?
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Post type child of another post type
- Page begins with number, WordPress adds 2
- How to prevent apostrophes and quotes from appearing in permalinks?
- Removing hierarchical pages in the permalink
- Can WordPress realistically handle a site with 500 ‘pages’?
- Why don’t WordPress post slugs allow accents?
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- How can I force WordPress to redirect to canonical permalinks?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- Subdomains to pages
- How to i18n slugs for templates?
- Passing variables through permalink structure
- Broken wordpress permalinks on pages only
- Remove parent slug for child pages
- How to get a page url by a page id?
- How to make draft posts or posts in review accessible via full url / slug?
- Remove parent slug for child pages
- Replace WordPress %postname% suffix with %postid%?
- Limiting the number of words or characters in the slug/permalink
- Relative or Absolute Paths for Flash Video Player Files
- Should I use relative or absolute urls when pointing to internal pages
- How to change the permalink structure of a master page?
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Why I can’t change the permalink of this page?
- How to edit the slug/permalink in Gutenberg?
- Make attachment pages require a base url
- Is using %postname% for permalinks really that bad for performance?
- How to generate random numeric slugs for a custom post type?
- Duplicate Category and Page URL loads Category instead of the Page
- Page Attachment Permalink Structure based on Menu Order?
- Filter string like a slug
- Change author slug and functionality
- Get closest page ID from URL
- How do I fix permalinks for custom post types that has the same slug as a page?
- How to modify the slug for the default wp posts without affecting other posttypes?
- Auto-create a pretty permalink for a bunch of posts
- Permalinks for pages
- Permalinks by page/post name returning 404
- Does rename of page slugs create 301 redirects from old slug to new (same as for posts)?
- Get new WordPress slug from old wordpress slug
- Pages not using permalink
- How to get post object on blog template
- Non latin post slug truncate
- filtering special chars from post slug
- Editing URL character replacement
- Share same Slug for a Custom Post Type and 2 Taxonomies
- Is it possible for a custom post type and sub pages of a page with the same slug as the custom post type to share a slug?
- Add prefix to page URL based on the page template
- force permalink slug for page vs post_type slug parent
- Assign same parrent Page to pages AND custom post types
- wp not making CPT permalink / slugs unique
- Get the url of a page template without using the page slug and ID
- Remove -2 from URL; no duplicate pages, no images, no pages in trash
- Edit page slug after save, cause 404 by linked pages
- How to handle broken links created by permalink/slug changes?
- Host frontpage via example.com and everything else via example.com/blog
- WordPress is suppressing page extensions!
- Let me choose permalinks
- Pre-populate Slug / Permalink with URL
- Passing the JQuery string to Worldpress URL
- Slugs Disappeared Leaving 404s – Quick way to repopulate?
- Path to Pages Resolves to Archive instead of Actual Content
- Custom permalinks in WordPress
- Changing permalink name redirects to another template?
- Permalink opens attachment instead of page
- How do I reclaim either deleted pages or their permalinks?
- Permalink of a page that has already been deleted
- wordpress how to replace url /bar with foo/bar for custom post type
- Edit permalink for certain pages
- cannot link a external url, present page url acting as parent url
- Suddenly new posts have the default permalink instead of the post name
- How to Custom Edit Post Title & Permalink Slug?
- Test site pages go to main site
- how to get a list of all top level pages
- “-2” Being added to end of URL (no duplicate pages, no pages in trash)
- Redirect From Url To Url
- how do prevent wordpress from creating permalinks for media files
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- How are WordPress Page URLs affected by permalink settings?
- How to use page jumps to top of banner and page title?
- Get a link to paged() part?
- WordPress Page Not Found if Permalink Settings is Postname
- Pagination url for page template
- Why does enabling Permalinks make pages not found?