Is there a function that returns a page’s ID by its title or ‘nicename’? (Similar to how is_page works…)
I want to exclude a page from the wp_list_pages list, but don’t know the page’s ID, only its nicename…
And unfortunately, wp_list_pages only excludes by ID… 🙁
That’s why I’m looking to get a page’s title by its ID outside the loop.
- The topic ‘Get page ID by title via function’ is closed to new replies.