Don't show the blog Archive template as a duplicate on the blog Category page
authorLaury GvR <laury@gaslightmedia.com>
Fri, 3 May 2019 20:56:45 +0000 (16:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 3 May 2019 20:56:45 +0000 (16:56 -0400)
index.php

index 8cbeba1..48cff60 100644 (file)
--- a/index.php
+++ b/index.php
                     } 
                     if (is_home()) { 
                         include "sections/blog-home.php";
-                    }
-                    if (is_category() ) {
+                    } else if (is_category() ) {
                         include "sections/blog-category.php";
-                    } 
-                    if (is_archive()) { 
+                    } else if (is_archive()) { 
                         include "sections/blog-archive.php";
-                    }
-                    if (is_single()) {
+                    } else if (is_single()) {
                         include "sections/blog-single.php";
                     }
                     if (is_search()) {