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:
691c660
)
Add epicenter widget check on page.php
author
Laury GvR
<laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:44:21 +0000
(14:44 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Tue, 16 Apr 2019 18:44:21 +0000
(14:44 -0400)
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/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(); ?>