Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Display metaData except for “Price” or “Download” Re: Display metaData except for “Price” or “Download”

#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 {
}
?>