excluding blog category from the front page and the sidebar recent posts
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Apr 2019 15:03:35 +0000 (11:03 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 11 Apr 2019 15:03:35 +0000 (11:03 -0400)
header.php
parts/blog-feed-front.php
parts/blog-sidebar-r.php
style.css

index ef4c2e4..de68951 100644 (file)
@@ -4,7 +4,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.2.60">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.2.61">
       <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico">
     <link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
     <link href='//fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
index a96932b..7eed7b7 100644 (file)
@@ -1,5 +1,5 @@
     <?php
-    $args = array('numberposts' => 5, 'order_by' => 'date');
+    $args = array('numberposts' => 5, 'order_by' => 'date','cat' => '-70');
     $lastposts = get_posts( $args );
     if ($lastposts) { ?>
 
index 97a1da8..798b5c4 100644 (file)
@@ -12,7 +12,7 @@
                 <h2>Recent Posts</h2>
                 <ul>
                 <?php
-                        $args = array( 'numberposts' => '5', 'post_status' => 'publish' );
+                        $args = array( 'numberposts' => '5', 'post_status' => 'publish','cat' => '-70' );
                         $recent_posts = wp_get_recent_posts( $args );
                         foreach( $recent_posts as $recent ){
                                 echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .   $recent["post_title"].'</a> </li> ';
index 8538051..77c3355 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MountPleasantCVB
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MountPleasantCVB
-Version: 1.2.60
+Version: 1.2.61
 */