WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Displaying multiple value's Label (1 post)

  1. xianluoxxx
    Member
    Posted 7 months ago #

    Checkbox
    red:Red (selected)
    blue:Blue (selected)

    I want show Red and Blue on my post page. How to do?
    I am not familiar with php and only know how to show single value's label as your document:
    $field = get_field_object('field_name');
    $value = get_field('field_name');
    $label = $field['choices'][ $value ];

    Please help me.

    http://wordpress.org/plugins/advanced-custom-fields/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.