I am working in wordpress. I am using a custom field to get an set of values. Right now, it returns this into my theme.
Pizza, Piatti al forno, Insalata, Toppings, Pagnottelle,
I tried using explode() to echo it out into an unordered list using the comma as the delimeter but all I could get was
Array
or
Array ( [0] => Array )
So I set it back to get the values above. Here is what I have right now
global $wp_query;
$postid = $wp_query->post->ID;
$item = get_post_meta($postid, 'lunch menu', true);
?>
foreach( $item as $items){
echo '- '.$items."
";
}
wp_reset_query();
?>