I’m an old hand at PHP but have only dabbled in wordpress so excuse my ignorance:
I’m trying to get a list of pages by their relative permalinks for example:
“/home”,
“/contact”
I can’t see which function would be good for this and want to avoid getting hacky.
Thanks
I would use http://codex.wordpress.org/Function_Reference/get_pages and then http://codex.wordpress.org/Function_Reference/get_page_link in a loop. I don’t know if there’s a “better” way, but this will work for sure.
For local/relative URLs you can use:
get_page_uri($page->ID)