Add epicenter widget check on page.php
authorLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:44:21 +0000 (14:44 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:44:21 +0000 (14:44 -0400)
page.php

index a6d349b..b487778 100644 (file)
--- a/page.php
+++ b/page.php
@@ -12,6 +12,14 @@ if ( ! defined( 'ABSPATH' ) ) {
 }
 ?>
 <?php get_header(); ?>
+<?php if (is_page(12465)) {
+       echo "<br>Now we're on page 12465, Epicenter news";
+       function modify_widget() {
+               $r = array( 'cat' => '-70');
+               return $r;
+       }
+       add_filter('widget_posts_args','modify_widget');
+} ?>
 <section id="content" <?php Avada()->layout->add_style( 'content_style' ); ?>>
        <?php while ( have_posts() ) : ?>
                <?php the_post(); ?>