Get Permalink of pages
You're talking about Pages right? Not Posts. Is this what you looking for: get_permalink( get_page_by_path( 'map' ) ) get_permalink( get_page_by_title( 'Map' ) ) home_url( '/map/' )