Support

Account

Home Forums Add-ons Repeater Field Displaying Prepend String Data in Repeater Text Field

Helping

Displaying Prepend String Data in Repeater Text Field

  • I have a text field called price in a repeater custom field. I am using the prepend field to show the dollar sign.

    What is the display logic I need to show the prepend text, which in this case is a dollar sign?

    Thank you!

  • I personally would do something like

    
    echo '$';
    the_field('field-name');
    

    but you can do

    
    $field = get_field_object('field-name');
    echo $field['prepend'];
    the_field('field-name');
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.