Get the value from custom meta checkboxe arrays

Home Forums Calendar Products Events Calendar PRO Get the value from custom meta checkboxe arrays

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #14979
    Blaine
    Participant

    I have a set of check boxes using a single custom meta check box array and need to test if certain boxes are checked. What is the method to pull those values?

    #14989
    Rob
    Member

    Hi Blaine. Thanks for the note; not sure of this myself, but let me see if our dev Jonah has any suggestions. I’ll get him to take a look and chime in directly if he does when he hits the forum today.

    #15010
    Jonah
    Participant

    Hi Blaine,

    Try something like this:


    $select = tribe_get_custom_field( 'Checkbox' );
    if ($select == 'Yes') {
    echo $select . ' is checked.';
    } else {
    echo 'Something else is checked.';
    }

    #15055
    Blaine
    Participant

    Thanks, I used something similar.

    #15078
    Rob
    Member

    Awesome! Glad to hear you got this figured out, Blaine. Let us know what else comes up as you keep using the plugin down the road, happy to help when we can.

    #975611
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Get the value from custom meta checkboxe arrays’ is closed to new replies.