Custom Fields
Re-Envisioned
Support General Display Taxonomy Link from metabox Reply To: Display Taxonomy Link from metabox

#13289

Anh Tran
Keymaster

Hi Vee Jay,

The rwmb_meta returns a term object, so if you echo $ptf->name, you output only its name.

It’s better to use:

rwmb_the_value( 'pub_type_field' );

Or:

$ptf = rwmb_meta( 'pub_type_field' );
printf( '<a href="%s">%s</a>', get_term_link( $ptf ), $ptf->name );