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;
<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' );
}
?>
</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(
'orderby' => 'name',
'show_count' => 0,
'pad_counts' => 0,
- 'hierarchical' => 0,
+ 'hierarchical' => 1,
'taxonomy' => $tax,
'title_li' => ''
);
<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' );
}
?>
</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(
<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' );
}
?>
</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(