WordPress.org

Forums

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

  1. xianluoxxx
    Member
    Posted 1 year 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.