Undefined variable: bathrooms

Here is my code

‘;
$acco_icon = ”;
$bedroom_icon = ”;
$bathroom_icon = ”;

} elseif($icon_type == ‘custom_icon’) {
$type_icon = ”;
$acco_icon = ”;
$bedroom_icon = ”;
$bathroom_icon = ”;
}
$serve_food=get_post_meta($post->ID,’serve_food’,true);
if($serve_food == “yes” || ($kitchen_avalibility != “Not Available” && $kitchen_avalibility != “”))
{
?>

Food & Kitchen

“;
if($serve_food == “yes”)
{
$diets=get_post_meta($post->ID,’diets’,true);
if($diets != “”)
{
echo ”;
echo “Diet”;
echo ”.$diets.”;
echo ”;
}
$about_food=get_post_meta($post->ID,’about_food’,true);
if($about_food != “”)
{
echo ”;
echo “About Food”;
echo ”.$about_food.”;
echo ”;
}
}
$kitchen_avalibility=get_post_meta($post->ID,’kitchen_avalibility’,true);
$about_kitchen=get_post_meta($post->ID,’about_kitchen’,true);
$kitchenFacilities=get_post_meta( $post->ID, ‘kitchen_facilities’, true );
$mealsArr=get_post_meta( $post->ID, ‘op_meal’, true );
//~ print_r($kitchen_avalibility);
if($kitchen_avalibility != “Not Available” || $kitchen_avalibility != “”)
{
if(!empty($kitchen_avalibility))
{
echo ”;
echo “Kitchen Availability”;
echo ”.$kitchen_avalibility.”;
echo ”;
}

if(!empty($about_kitchen))
{

echo ”;
echo “Kitchen Details”;
echo ”.$about_kitchen.”;
echo ”;
}

if(!empty($kitchenFacilities))
{
echo ”;
echo “Kitchen Facilities”;

echo “”;
foreach($kitchenFacilities as $k){
echo “”.$k.””;
}
echo “”;
echo ”;
}

if(!empty($mealsArr))
{
echo ”;
echo “Meals”;

echo “”;
foreach($mealsArr as $k){
echo “”.$k.””;
}
echo “”;
echo ”;
}

}

if($serve_food == “no” && ($kitchen_avalibility == “Not Available” || $kitchen_avalibility == “”))
{
echo “Not Available”;
}
echo “”;
?>

Read more here:: Undefined variable: bathrooms

Leave a Reply

Your email address will not be published. Required fields are marked *