Home › Forums › CSS › Display metaData except for “Price” or “Download” › Re: Display metaData except for “Price” or “Download”
April 19, 2013 at 10:46 am
#132440
JokerMartini
Participant
This look shows everything with the label Downloads. Now how can I switch this around to show everything except for download along with the name of the Value as the label….?
//Get any custom field data under the name Downloads and display
$downloadField = get_post_meta($post->ID, ‘Downloads’, true);
if ($downloadField) {
$custom_fields = get_post_meta( get_the_ID() );
$my_custom_field = $custom_fields;
foreach ( $my_custom_field as $key => $value )
echo “
” . $value . “
” ;
}
else {
}
?>