I hope someone can help me out with this challenge. It is related to a previous post of mine (http://wordpress.org/support/topic/32310).
I need a function that will return an array of a page’s hierarchy. Basically I want an array containing each of a page’s parent’s IDs.
– Desserts (id=7)
– – Cookies (id=9)
– – – Chocolate Chip (id=12)
So if I was on the Chocolate Chip page, a call to the function would return an array containing the following: (5, 7, 9).
Thanks so very much for your help.
- The topic ‘Script help: Get Array of Page Parents’ is closed to new replies.