. */ 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'); ?> Epicurious.com – Inspired2cook.com

Archives: Epicurious.com

Wild Arugula Salad with Garlic Croutons, Shaved Parmesan, and Lemon

April 9, 2013 | By andrea | 1 Comment | Filed in: Italian, Quick Cooking, Recipes, Salad.

We’re definitely moving into salad weather so here’s a recipe featuring pungent and peppery arugula tossed with homemade croutons, shaved Parmesan cheese and lightly dressed with good olive oil and fresh lemon juice. Don’t even think about using store-bought croutons. Homemade croutons are super easy to make and so much tastier! This is a simply-flavored salad • Read More »

Tags: , , , , , , , , ,

Grilled Monterey Jack and Corn Quesadillas

September 29, 2012 | By andrea | Comments Off on Grilled Monterey Jack and Corn Quesadillas | Filed in: Appetizer, Main Dish, Mexican, Quick Cooking, Recipes, Sandwich, Snack, Southwestern, Vegetarian.

Not only are quesadillas super easy to whip up but they make a great snack, lunch or light dinner. This particular recipe is jazzed up with a creamy, smoky chipotle and corn filling…it’s delicious! Serve the quesadillas with mixed greens drizzled with Southwestern Vinaigrette and you’ve got a tasty meal! Note: The recipe calls for a grill • Read More »

Tags: , , , , ,

Oven-Roasted Fries

September 18, 2012 | By andrea | Comments Off on Oven-Roasted Fries | Filed in: Appetizer, Kid-friendly, Potatoes, Recipes, Side Dish, Snack, Vegetable, Vegetarian.

  These delicious thick-cut fries couldn’t be any easier to make! I served them with a smoky Chipotle Mayo dipping sauce along side grilled burgers…sooo good! Instead of using non-stick spray on the baking sheet, I lined it with parchment paper. In the past, I’ve had potatoes stick to the pan even with the non-stick spray but • Read More »

Tags: , , , , , , ,