From: Laury GvR Date: Fri, 24 Apr 2015 20:37:54 +0000 (-0400) Subject: If is front page in funcs; ignore X-Git-Tag: v1.0.0~50 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=74b28e51a1a8bb35167d65f0c370b2b07048e15b;p=WP-Themes%2FDarkSkiesEmmet.git If is front page in funcs; ignore --- diff --git a/functions.php b/functions.php index 296f5eb..05c3c5a 100644 --- a/functions.php +++ b/functions.php @@ -65,8 +65,8 @@ function glm_page_menu($parent = 0, $class = '') $pages = get_pages($args); echo ''."\n"; foreach ($pages as $page) { - $childs = get_pages('child_of=' . $page->ID); if (!is_page('Front Page')) { + $childs = get_pages('child_of=' . $page->ID); if (count($childs) > 0) { echo '
  • '."\n"; echo ''.$page->post_title.''."\n";