Hi,
I want to do this :
- On a page, I list every subpages of this page
- For each subpage, I want to know the template used by this subpage
- So i could choose the right icon for the right template
The problem is i'm doing it outside the loop.
get_pages brings me alot, but no the template name used.
I checked the database but wasn't able to find out where the template name for a post with a post_type of "page" is stored.
Any idea how to have a function, with a ID, that could retrieve the template name of that ID ?