{// post_list
case \'post_list_produktkrav\':
$items = get_posts( array (
\'post_type\' => $field[\'post_type\'],
\'posts_per_page\' => -1
));
foreach($items as $item) {
echo \'<input type="checkbox" value="\'.$item->ID.\'" name="\'.$field_related[\'id\'].\'[]" id="\'.$item->ID.\'"\',$meta_related && in_array($item->ID, $meta_related) ? \' checked="checked"\' : \'\',\' />
<label for="\'.$item->ID.\'">\'.$item->post_title.\'</label><br />\';
} // end foreach
break;}