Home › Forums › Pro Support › Custom Fields › Reply To: Custom Fields
January 29, 2020 at 1:13 am
#12995
Participant
Hi
I used this code for the custom field “precio” and it works correctly:
add_action( ‘wpsp_before_content’,’wpsp_add_custom_meta’);
function wpsp_add_custom_meta()
{
$meta = get_post_meta( get_the_ID(), ‘precio’, true );
if ( isset( $meta ) && ” !== $meta )
echo $meta; echo “€”;
}
I want to do the same with 2 taxonomies (similar to categories), not custom fields, but that code does not work with them.