fixing the recent posts filter in the sidebar for the main blog page
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 17 Apr 2019 13:40:40 +0000 (09:40 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 17 Apr 2019 13:40:40 +0000 (09:40 -0400)
functions.php

index db02a50..322a0a2 100644 (file)
@@ -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