• Resolved GreyhoundXX

    (@greyhoundxx)


    I have a custom field set up as a multi-select with checkbox and the output filter is “Array (to_array)”. However, when I use get_post_meta I end up with a string. For example, I have people check off days of the week.

    This is how I get the field in my loop:

    `$days = get_post_meta($post->ID, ‘days’, 0);

    When I print it out, I get this, which is an array of 1:

    Array ( [0] => [“Monday”,”Tuesday”,”Wednesday”,”Thursday”,”Friday”] )

    Is there any way to fix this without doing a bunch of str_replace and explode?

    https://www.ads-software.com/extend/plugins/custom-content-type-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Custom Content Type Manager] Multi-select output to array doesn't make array’ is closed to new replies.