Codex

Function Reference/get page uri

Contents

Description

Builds URI for a page.

Sub pages will be in the "directory" under the parent page post name.

Usage

<?php get_page_uri$page_id ?>

Parameters

$page_id
(integer) (required) Page ID.
Default: None

Return Values

(string) 
Page URI.

Examples

Notes

Change Log

Since: 1.5.0

Source File

get_page_uri() is located in wp-includes/post.php.

Related

Page Tags: get_all_page_ids(), get_ancestors(), get_page(), get_page_link(), get_page_by_path(), get_page_by_title(), get_page_children(), get_page_hierarchy(), get_page_uri(), get_pages(), is_page(), page_uri_index(), wp_list_pages(), wp_page_menu()

See also index of Function Reference and index of Template Tags.