Support

Account

Home Forums Front-end Issues How to get field value inside custom plugin Reply To: How to get field value inside custom plugin

  • Hi @woody

    You can always use the get_field() function to grab the values of the custom fields, store them in a variable and later echo them with the same function. You can use the following code in your template:

    $value = get_field( “text_field” );

    if( $value ) {

    echo $value;

    } else {

    echo ’empty’;

    }