• Resolved notavailable98

    (@notavailable98)


    Hi,

    I installed CMB2 from WordPress.org and activated it. I created a multicheck field of features for a custom post type. I would like to get an array of the options in that field (all the options) and display it as a list on a single post page. I managed to get an array of only the checked options using get_post_meta(). I tried using the function cmb2_get_option('multicheck_field_ID') but it does not work.

    Help is much appreciated.

    Thank you!

    https://wordpress.org/plugins/cmb2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you wanting this to be part of a form a user could interact and submit to? or just for display/information purposes?

    Thread Starter notavailable98

    (@notavailable98)

    Hi Michael, thanks for your reply!

    Just for display/information purposes, anyway I already sorted it out using cmb2_get_field, and getting the options from the field object.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Awesomeness, I’m glad a solution was found for this. Happy developing, notavailable98.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get multicheck field options’ is closed to new replies.