Forums

Cimy User Extra Fields
[resolved] How do I get the field values for a checkbox that is checked? (2 posts)

  1. tberneman
    Member
    Posted 3 months ago #

    I want to get the field values for the person with a certain cimy extra field that is a checkbox that is checked. I'm trying this code:

    $values = get_cimyFieldValue(false, 'President', 'True');
    foreach ($values as $value) {
    $user_id = $value['user_id'];
    /* display fields here */
    }

    I've tried 'True', 'Yes', 'OK', '1', and 'Checked' and none of them worked.

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. tberneman
    Member
    Posted 3 months ago #

    I figured this out, it was an error on my end. The correct value to look for is 'Yes', ie:

    $values = get_cimyFieldValue(false, 'President', 'Yes');

Reply

You must log in to post.

About this Plugin

About this Topic