From cc8654788e9c6c541dc1991ea5314967fdbfd818 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 9 Feb 2016 16:07:23 -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 1cb175c..21fad21 100644 --- a/functions.php +++ b/functions.php @@ -319,7 +319,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