Posts Tagged “themes”

WordPress function: has_parentpage()

by Rainer Bendig on March 16, 2009

I just created a conditional function for Wordpress to check, if the current page has a parent page (or if the page is a sub page). It works outside the main loop, and also inside. To use this function, you need WordPress 2.5 or higher…. Read more