Is it possible to get a page link from its slug?

Is this what you are looking for:

  1. get_permalink( get_page_by_path( 'map' ) )
  2. get_permalink( get_page_by_title( 'Map' ) )
  3. home_url( '/map/' )

Leave a Comment