From: Laury GvR Date: Wed, 3 Jun 2015 20:25:40 +0000 (-0400) Subject: Change wording blog->recipes, search should include recipes too now. X-Git-Tag: v1.0.0~37 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=0f509e604163f2df7860bb44aea29f0290c5ac6e;p=WP-Themes%2FToskiSands.git Change wording blog->recipes, search should include recipes too now. --- diff --git a/functions.php b/functions.php index 499ba36..9549da3 100644 --- a/functions.php +++ b/functions.php @@ -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; diff --git a/home.php b/home.php index cfc46d3..9dde7d5 100644 --- a/home.php +++ b/home.php @@ -52,7 +52,7 @@ -

Recent Posts

+

Recent Recipes

-

Archive

+

Recipe Archive

-

Categories

+

Recipe Categories