From: Anthony Talarico Date: Wed, 17 Apr 2019 13:40:40 +0000 (-0400) Subject: fixing the recent posts filter in the sidebar for the main blog page X-Git-Tag: v1.0.0^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=69790cb3ab7fa8c7bc5f65578e7e50c221a1dc02;p=WP-Themes%2Fmeetmtp.git fixing the recent posts filter in the sidebar for the main blog page --- 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