meta_fields as $field) { /* we are only interested in tab 2 */ if( $field->tab === 1){ /* Return the markup for the field */ $field->get_markup(); } } ?>