WordPress parent and child pages for sidebar navigation
A useful snippet of code for WordPress websites which need to display a sidebar for the current page and it’s child pages. This code retrieves the current top level parent page and displays all child pages underneath. The two functions sit in the functions.php file within your theme and are called from within the page […]
Read more