From 69790cb3ab7fa8c7bc5f65578e7e50c221a1dc02 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 17 Apr 2019 09:40:40 -0400 Subject: [PATCH] fixing the recent posts filter in the sidebar for the main blog page --- functions.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index db02a50..322a0a2 100644 --- a/functions.php +++ b/functions.php @@ -743,14 +743,14 @@ function fusion_doing_ajax() { } /* Omit closing PHP tag to avoid "Headers already sent" issues. */ -// add_action('wp', 'check_home'); -// function check_home() { -// if(is_home() || is_category()) { -// function modify_widget() { -// $r = array( 'cat' => '-70'); -// return $r; -// } +add_action('wp', 'check_home'); +function check_home() { + if(is_home() || is_category()) { + function modify_widget() { + $r = array( 'cat' => '-70'); + return $r; + } -// add_filter('widget_posts_args','modify_widget'); -// } -// } \ No newline at end of file + add_filter('widget_posts_args','modify_widget'); + } +} \ No newline at end of file -- 2.17.1