Retrieve Pages by Path or Template in WordPress

By Template:

$pages_using_template = get_pages(array(
    'meta_key' => '_wp_page_template',
    'meta_value' => 'template-press-release-list.php',
    'post_status' => 'publish',
    'post_type' => 'page',
    'hierarchical' => 0 //because page looking for could have a parent - without this only gets top level pages.
));

Check if got anything and use it from query above:

if($pages_using_template && count($pages_using_template) > 0) :
    $page = $pages_using_template[0];  
    esc_url(get_the_permalink($page));
endif; ?>

By Path:

$page = get_page_by_path('parent-page/sub-page');
Do NOT follow this link or you will be banned from the site!