ID;
$type = get_post_meta($id, '_bsf_post_type', true);
if($type == '1')
{
global $post;
// echo $post->ID;
$review = $content;
$review .= '
';
$recipes_name = get_post_meta( $post->ID, '_bsf_recipes_name', true );
$recipes_preptime = get_post_meta( $post->ID, '_bsf_recipes_preptime', true );
$recipes_cooktime = get_post_meta( $post->ID, '_bsf_recipes_cooktime', true );
$recipes_totaltime = get_post_meta( $post->ID, '_bsf_recipes_totaltime', true );
$recipes_photo = get_post_meta( $post->ID, '_bsf_recipes_photo', true );
$recipes_desc = get_post_meta( $post->ID, '_bsf_recipes_desc', true );
$recipes_ingredient = get_post_meta( $post->ID, '_bsf_recipes_ingredient', true );
$comments = wp_count_comments($post->ID);
$count = $comments->approved;
$agregate = average_rating();
if(trim($recipes_photo) != "")
$recipe .= '

';
if(trim($recipes_name) != "")
$recipe .= '
Recipe Name: '.$recipes_name.'';
$recipe .= '
Published on : ';
if(trim($recipes_preptime) != "")
$recipe .= '
Prep. Time : ';
if(trim($recipes_cooktime) != "")
$recipe .= '
Cook Time : ';
// $recipe .= display_rating();
return $recipe;
}
else if($type == '8')
{
global $post;
$software = $content;
$software .= '