From: Laury GvR Date: Fri, 29 Jan 2016 17:15:57 +0000 (-0500) Subject: Replace all get_page_by_title to use IDs instead X-Git-Tag: v1.2.20^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=4d7592d5c3c14355e80227b65244d5fe0a040e16;p=WP-Themes%2Fgilmoremuseum.git Replace all get_page_by_title to use IDs instead --- diff --git a/footer.php b/footer.php index e64ccbe..c150b32 100644 --- a/footer.php +++ b/footer.php @@ -29,7 +29,7 @@ diff --git a/front-page.php b/front-page.php index 33df457..a7faed0 100644 --- a/front-page.php +++ b/front-page.php @@ -31,7 +31,7 @@
- +
diff --git a/functions.php b/functions.php index 860bcf9..2346f28 100644 --- a/functions.php +++ b/functions.php @@ -58,7 +58,7 @@ function glm_page_menu($parent = 0, $class = '', $subnav = false, $navImg = null echo ''.$page->post_title.''."\n"; echo glm_page_menu($page->ID, 'sub-menu dropdown', true, $navImg); echo ''."\n"; - } else if ($page == get_page_by_title('Product Category')) { + } else if ($page == get_page('1592')) { echo ''."\n"; echo do_shortcode('[product_categories number="" orderby="name" order="asc" columns="1" hide_empty="0" parent="0" ids=""]'); } else { @@ -158,7 +158,7 @@ function glm_offcanvas_menu($parent = 0, $class = '') echo ''; echo glm_offcanvas_menu($page->ID, 'sub-menu dropdown'); echo ''."\n"; - } else if ($page == get_page_by_title('Product Category')) { + } else if ($page == get_page('1592')) { echo '
  • '.$page->post_title.'
  • '."\n"; echo do_shortcode('[product_categories number="" orderby="name" order="asc" columns="1" hide_empty="0" parent="0" ids=""]'); } else { diff --git a/parts/glm-blocks.php b/parts/glm-blocks.php index 4f7033e..92d8faa 100644 --- a/parts/glm-blocks.php +++ b/parts/glm-blocks.php @@ -4,7 +4,7 @@ glm_blocks_show(); echo '
    '; echo '
    - +
    '; echo ''; diff --git a/parts/shop-sidebar.php b/parts/shop-sidebar.php index 092a841..df3524a 100644 --- a/parts/shop-sidebar.php +++ b/parts/shop-sidebar.php @@ -1,27 +1,27 @@