Repeatable custom meta select boxes
To make this work… $meta == $item->ID ? ‘ selected=”selected”‘ : ”; … with an array like a:1:{i:0;s:3:”179″;} which unserializes to… Array ( [0] => 179 ) … you’d need to do this: $meta = unserialize($meta); $meta[0] == $item->ID ? ‘ selected=”selected”‘ : ”; But that line shows up inside a foreach like foreach($meta as … Read more