Change wording blog->recipes, search should include recipes too now.
authorLaury GvR <laury@gaslightmedia.com>
Wed, 3 Jun 2015 20:25:40 +0000 (16:25 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 3 Jun 2015 20:25:46 +0000 (16:25 -0400)
functions.php
home.php
page.php
search.php
single.php

index 499ba36..9549da3 100644 (file)
@@ -83,7 +83,8 @@ function SearchFilter($query) {
     if(isset($_GET['searchType'])) {
         $searchType = $_GET['searchType'];
         if ($searchType == 'blog' && !is_admin()) {
-            $query->set('post_type', 'post');
+            $query->set('post_type', array( 'post','recipe'));
+//            $query->set('post_type', 'post');
         }
     }
     return $query;
index cfc46d3..9dde7d5 100644 (file)
--- a/home.php
+++ b/home.php
@@ -52,7 +52,7 @@
                     <input class="submit blogbutton" type="submit" name="submit" value="Search the Blog" />
                     <input type="hidden" name="searchType" value="blog" /> </div>
                 </form>
-                <p>Recent Posts</p>
+                <p>Recent Recipes</p>
                 <ul>
                 <?php
                         $args = array( 'numberposts' => '5' );
@@ -62,9 +62,9 @@
                         }
                 ?>
                 </ul>
-                <p>Archive</p>
+                <p>Recipe Archive</p>
                 <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-                <p>Categories</p>
+                <p>Recipe Categories</p>
                 <ul>
                     <?php
                     $args = array(
index 0bafc7e..09fdccc 100644 (file)
--- a/page.php
+++ b/page.php
@@ -20,7 +20,7 @@
                                           'orderby' => 'name',
                                           'show_count' => 0,
                                           'pad_counts' => 0,
-                                          'hierarchical' => 0,
+                                          'hierarchical' => 1,
                                           'taxonomy' => $tax,
                                           'title_li' => ''
                                         );
index 9a03e76..e4ab7bd 100644 (file)
@@ -51,7 +51,7 @@
                     <input class="submit blogbutton" type="submit" name="submit" value="Search" />
                     <input type="hidden" name="searchType" value="blog" /> </div>
                 </form>
-                <p>Recent Posts</p>
+                <p>Recent Recipes</p>
                 <ul>
                 <?php
                         $args = array( 'numberposts' => '5' );
@@ -61,9 +61,9 @@
                         }
                 ?>
                 </ul>
-                <p>Archive</p>
+                <p>Recipe Archive</p>
                 <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-                <p>Categories</p>
+                <p>Recipe Categories</p>
                 <ul>
                     <?php
                     $args = array(
index 95e681c..e470cf0 100644 (file)
@@ -54,7 +54,7 @@
                         <input class="submit blogbutton" type="submit" name="submit" value="Search" />
                         <input type="hidden" name="searchType" value="blog" /> </div>
                     </form>
-                    <p>Recent Posts</p>
+                    <p>Recent Recipes</p>
                     <ul>
                     <?php
                             $args = array( 'numberposts' => '5' );
@@ -64,9 +64,9 @@
                             }
                     ?>
                     </ul>
-                    <p>Archive</p>
+                    <p>Recipe Archive</p>
                     <ul><?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?></ul>
-                    <p>Categories</p>
+                    <p>Recipe Categories</p>
                     <ul>
                         <?php
                         $args = array(