This is the php code i am using in my wordpress header to display pages however i wish it to never display page child. Please post the solution below
<?php
$pages = CMSTheme_GetPages(); if ($pages) { foreach ($pages as $page) { $page_id = $page->ID; $page_title = $page->post_title; $page_name = $page->post_name;
<?php
$pages = CMSTheme_GetPages(); if ($pages) { foreach ($pages as $page) { $page_id = $page->ID; $page_title = $page->post_title; $page_name = $page->post_name;