Tag Archives: codex

get_page_template

Retrieve path of page template in current or parent template.Will first look for the specifically assigned page template The will search for ‘page-{slug}.php’ followed by ‘page-id.php’ and finally ‘page.php’

1544

Continue reading

get_page_hierarchy

Order the pages with children under parents in a flat list.It uses auxiliary structure to hold parent-children relationships and runs in O(N) complexity

1536

Continue reading

get_page_children

Retrieve child pages from list of pages matching page ID.Matches against the pages parameter against the page ID. Also matches all children for the same to retrieve all children of a page. Does not make any SQL queries to get the children.

1534

Continue reading