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 readingRetrieve 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 readingRetrieve the permalink for current page or page ID.Respects page_on_front. Use this one.
1538
Continue readingOrder 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 readingRetrieve 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