}
/* 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
}
}
if (is_home()) {
- echo "Do stuff when is_home()";
+ echo "In cat 70 but also in home..";
+ }
+} else if (is_page(12465)) {
+ echo "Now we're on page 12465, Epicenter news";
+ function modify_widget() {
+ $r = array( 'cat' => '-70');
+ return $r;
}
+ add_filter('widget_posts_args','modify_widget');
} else {
if (is_home()) {
echo "Do stuff when is_home()";