Last modified 6 years ago
One of McNicksPlugins
I wrote the page-tools plugin because I wanted to start making use of pages within WordPress. The plugin contains a few simple functions:
- page_get_parents() returns a list of HTML anchor tags that point to the parents (ie. parent, grandparent, ...etc) of the current page.
- page_get_children() returns a list of HTML anchor tags that point to the children of the current page.
- page_get_siblings() returns a list of HTML anchor tags that point to the siblings of the current page.
- page_get_toc() returns a list of HTML anchor tags that link to all of the headings defined within the current page.
