From 58a9cff469bb064bd4232f559e7bd0ccfa6dbac0 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 9 Feb 2016 16:05:44 -0500 Subject: [PATCH] Replaced deprecated get_page with get_post --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index a523305..ee48839 100644 --- a/functions.php +++ b/functions.php @@ -281,7 +281,7 @@ function glm_side_menu() { global $post; $parents = get_post_ancestors($post->ID); $id = ($parents) ? $parents[count($parents)-1]: $post->ID; - $parent = get_page( $id ); + $parent = get_post( $id ); if ($id == 0) { $ID = $post->ID; } else { -- 2.17.1