Support » Plugin: ACF Theme Code for Advanced Custom Fields » about custom fields with code

  • Resolved mrdurden68

    (@mrdurden68)


    hi for ex

    <?php the_field( ‘hız_gostergesi’ ); ?>

    plugin gave me this. and when i add it it only give me the value…

    i want to show it with

    CUSTOMFIELDNAME: VALUE
    COLOR: RED(VALUE)
    LENGHT: 220 CM (VALUE)

    i mean i want to show its label, how can i do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Aaron Rutley

    (@aaronrutley)

    Hi @mrdurden68

    Thanks for getting in touch,

    Which type of field are you working with ?
    Is the field set to return the label ?

    Cheers,
    Aaron.

    Thread Starter mrdurden68

    (@mrdurden68)

    hi @aaronrutley

    i m working with text field.

    is it what you asking for?

    i mean in the custom fields i added some groups and added some fields. and its text (not text area just text option)

    Plugin Author Aaron Rutley

    (@aaronrutley)

    Hi @mrdurden68

    Thanks for your reply,

    As I understand, you have a text field.

    You don’t want to return that value stored in the text field.
    You’d like to return the value of the label you assigned to the text field.

    If that’s the case this article may help if you:
    https://www.advancedcustomfields.com/resources/get_field_object/

    I hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘about custom fields with code’ is closed to new replies.