projects
/
WP-Themes
/
meetmtp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fefa67a
)
excluding epicenter categories from the recent posts in the sidebar
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 16 Apr 2019 17:50:02 +0000
(13:50 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 16 Apr 2019 17:50:02 +0000
(13:50 -0400)
functions.php
patch
|
blob
|
history
diff --git
a/functions.php
b/functions.php
index
1496f11
..
322a0a2
100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-743,3
+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_filter('widget_posts_args','modify_widget');
+ }
+}
\ No newline at end of file