Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Anh Tran

    (@rilwis)

    You can do like this:

    $field = RWMB_Helper::find_field( 'field_id' );
    echo $field['name'];
    Thread Starter Grafico_Torino

    (@grafico_torino)

    Thank you!It’s work but I would need show label only when the field has a value.
    In this way only if I have a filled field I can see it with its label on front-end.

    Thank you!

    Tried the above and it works but I want to get a more specific value.

    What if I want to get the label under options such as “Unreal Engine” in this case?

    array(
    'id'   => 'tools_used',
    'name' => __( 'Tools used:', 'checkbox_list' ),
    'type' => 'checkbox_list',
    
    'options' => array(
    	'unreal'    	  => 'Unreal Engine',
    	'visualstudio'    => 'Visual Studio 2015',
    	'excel'   	  => 'Microsoft Excel',
    	'photoshop'  	  => 'Adobe Photoshop',
    ),
    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    $field = RWMB_Helper::find_field( 'field_id' );
    $label = $field['options']['unreal']; //Or get the value and replace 'unreal'
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Print Field value with its label?’ is closed to new replies.