How to get a parent page name

Is there an easy way to retrieve the name of the parent page of a WordPress page? Add this code to your plugin or functions file: [php] <?php /** … [+]

Redirect all 404 to home page

How¬†can I redirect all non-existing pages to the home page? Add this code at the beginning of your 404.php template: [php] <?php … [+]