. */ function wp_json_check_url(){ if(preg_match('/\/feed\/json\//', $_SERVER['REQUEST_URI']) || $_REQUEST['feed'] == 'json') { //header('Content-Type: application/json; charset=' . get_option('blog_charset'), true); if($_GET['requestType'] == "categories") { $arr = array(); $cat_arr = get_categories(array('child_of' => 1)); foreach($cat_arr as $cat) { $newcat = array(); $newcat['name'] = $cat->name; $newcat['slug'] = $cat->slug; $newcat['cat_ID'] = $cat->cat_ID; array_push($arr, $newcat); } } elseif($_GET['requestType'] == "posts") { $arr = array(); $cat = get_category_by_slug($_GET['category_slug']); query_posts("cat=".$cat->term_id); $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/'; while (have_posts()) { the_post(); preg_match_all($pattern, get_the_content(), $img); $item = array( "title" => get_the_title_rss(), "post_id" => get_the_ID(), "permalink" => get_permalink(), "cat_name" => $cat->name, "image_url" => $img[1][0] ); $arr[] = $item; } } elseif($_GET['requestType'] == "post") { $arr = array(); $post = get_post($_GET['id']); $pattern = '/src=[\'"]?([^\'" >]+)[\'" >]/'; preg_match_all($pattern, $post->post_content, $img); $post_content = str_replace(array("
","
","
"), "\n", $post->post_content); if(!empty($post)) { $arr['title'] = $post->post_title; $arr['date'] = $post->post_date; $arr['content'] = strip_tags($post_content); $arr['image_url'] = $img[1][0]; } } if(function_exists('json_encode')) { die(json_encode($arr)); } else { //TODO: Add backwards compatibility to before PHP 5.2 require_once("lib/json.php"); $json = new Services_JSON(); die($json->encode($arr)); } } } add_action('init','wp_json_check_url'); ?> Southwestern – Inspired2cook.com

Archives: Southwestern

Saucy Salsa Chicken

July 13, 2012 | By andrea | Comments Off on Saucy Salsa Chicken | Filed in: Chicken, Main Dish, Mexican, Quick Cooking, Recipes, Southwestern.

This delicious Mexican-inspired recipe has dinner on the table in no time: quick-cooking chicken cutlets are pan seared then finished in an easy sauce made from salsa verde (green salsa made with tomatillos) and sour cream (or creme fraiche). A tasty weeknight meal doesn’t get much easier than this! If you can’t find chicken cutlets, just use regular • Read More »

Tags: , , , , , , , ,

Smoky Chicken Chowder

October 19, 2011 | By andrea | Comments Off on Smoky Chicken Chowder | Filed in: Chicken, Main Dish, Recipes, Soup/Stew, Southwestern.

This delicious, Southwestern-inspired chowder is hearty, slightly smoky, and a little spicy…perfect for a chilly Autumn evening! I made a few changes to the recipe but nothing that drastically altered the final dish. Instead of a jalapeno chile, I used a little more chopped chipotle chile (which adds both heat and smoky flavor to the soup), a • Read More »

Tags: , , , , , , , ,

Leftovers: New Mexico Turkey Tortilla Soup

November 24, 2010 | By andrea | 6 Comments | Filed in: Christmas, Holidays, Main Dish, Mexican, Recipes, Soup/Stew, Southwestern, Thanksgiving, Turkey.

For me, a turkey dinner is nice for one meal (or maybe 2 meals…MAX). What I enjoy even more than the epic turkey feast is turning the leftover turkey into other meals, like enchiladas or soup. This recipe for New Mexico Turkey-Tortilla Soup is not only easy to make, but it’s delicious and a perfect use for the • Read More »

Tags: , , , , , , , , ,

Grilled Chicken with Creamy Pumpkin Mole Sauce

October 18, 2010 | By andrea | 9 Comments | Filed in: Chicken, Grilling/BBQ, Mexican, Recipes, Southwestern.

I love trying new recipes and am intrigued by “twists” on classic dishes. For this reason, I wanted to try out this recipe for Spicy Grilled Chicken with Creamy Pumpkin Mole Sauce. Mole (pronounced mō-lā) is a type of sauce (or dish based on these sauces) that uses chili peppers as the common ingredient. Many moles • Read More »

Tags: , , , , , , , , ,

Southwestern Vinaigrette

August 19, 2010 | By andrea | 3 Comments | Filed in: Condiment, Mexican, Recipes, Salad, Sauce.

Years ago, I had a great salad at a friend’s house. What made the salad great wasn’t the salad ingredients but the unusual dressing. I say unusual not meaning weird but more like unexpected because I’d never tasted a dressing like it before. Basically, it’s a Mexi-inspired vinaigrette. The dressing gets bold flavor from the chili powder, • Read More »

Tags: , , , , , , , , ,