• Resolved 2olive

    (@2olive)


    Hello everybody. In my project I need metaboxes with checkbox list. This script is really what I need.
    In the example provided by the author, the third metabox has this checkbox list:

    ‘options’ => array(
    ‘reading’ => ‘Books, Magazines’,
    ‘sport’ => ‘Gym, Boxing’
    )

    To retrieve data the author suggests to use this call:

    $checkbox_list = get_post_meta(get_the_ID(), ‘checkbox_list_id’, false)

    but the only thing I can get is ‘reading’ or ‘sport’ as values (not keys) and in reversed order.

    How can I do to retrieve the values ‘Books, Magazine’?

    Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘meta box script for wordpress 3.2.2’ is closed to new replies.