log($recipe,'hrecipe_shortcode_handler'); // then make a database call. //$dbtable = $wpdb->prefix.$this->tablename; $dbtable = $wpdb->prefix.'recipetable'; $query = "SELECT * FROM ".$dbtable. " WHERE slug = '".$recipe."'"; //$firephp->log($query,'hrecipe_shortcode_handler'); $demodata = $wpdb->get_row($query); return "Recipe name: ".$demodata->recipe_name; } ?>