From 41f9a7eca0758120ace33a9e68ce806771bb71fd Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 9 Feb 2016 16:09:07 -0500 Subject: [PATCH] Replace 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 7021d5a..e3d1a22 100644 --- a/functions.php +++ b/functions.php @@ -259,7 +259,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