Ingredient

if (isset($_GET['ing'])) {
$ing = $_GET['ing'];
$query = "tag=" . $ing;
$nquery="name=" . $ing;

// Look up the post with "Tag" as the name
query_posts($nquery);
if ( have_posts() ) : while ( have_posts() ) : the_post();
echo the_content();
endwhile; else:
echo "No post with Tag Title found!
“;
endif;

//Reset Query
wp_reset_query();

//The Query
query_posts($query);

echo “

The following post have the ” . ucwords(strtolower(str_replace(“-”, ” “, $ing))) . ” Tag:

“;
echo “

“;

//Reset Query
wp_reset_query();

} else {
echo “

I got nothing!

“;
}
?>