[gnome-web-www/wptest] Don't apply the News Template to all posts tagged as Quarterly Reports.



commit d738feb6c0235b8e15242a8f5d3cf369fa032265
Author: Andrea Veri <av src gnome org>
Date:   Fri Mar 2 15:12:04 2012 +0100

    Don't apply the News Template to all posts tagged as Quarterly Reports.

 theme/single.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/theme/single.php b/theme/single.php
index f4b70aa..e420688 100644
--- a/theme/single.php
+++ b/theme/single.php
@@ -6,10 +6,15 @@
 
 
 $post_type = get_post_type();
+$post_category = get_the_category();
 
 if($post_type == 'post') {
 
-    require_once('news.php');
+    if($post_category->slug == 'quarterly-reports') {
+        require_once('one-column.php');
+    } else {
+        require_once('news.php');
+    }
 
 } elseif($post_type == 'projects') {
     



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]