Return ID of the parent page if parent page exists in wordpress theme
Posted on August 6, 2012 Posted Under Wordpress, Wordpress Tip and Tricks
Comments Off on Return ID of the parent page if parent page exists in wordpress theme
This is a great little snippet that will let you return the ID of the parent page if the page has a parent in wordpress. Just add this snippet to the functions.php of your wordpress theme and your ready to get wordpress the parent page ID.