Thanks a lot, that worked!
Have two more questions!
1.
I’m wondering if instead of yes/no, displaying a png-image with different graphics on checked/unchecked. Could that be done, for example using jQuery (like .attr(“src”,”graphic.png”); or something?
2.
I need to reset all values of a certain custom field, would like to make it a function and run it on a specific php-page. But I don’t know exacly how. This code works, but for some reason it executes even it is on a page that is not used (why?)
$querystr = "
SELECT wposts.*
FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta
WHERE wposts.ID = wpostmeta.post_id
AND wpostmeta.meta_key = 'price'
AND wpostmeta.meta_value = '50'
AND wposts.post_status = 'publish'
AND wposts.post_type = 'post'
ORDER BY wposts.post_date DESC";
$pageposts = $wpdb->get_results($querystr, OBJECT);
?>
<?php if ($pageposts): ?>
<?php foreach ($pageposts as $post): ?>
<?php setup_postdata($post); ?>
<?php update_post_meta($post->ID, 'price', '0'); ?>
<?php endforeach; ?>
<?php else : ?>
<?php endif; ?>
btw, will definitely donate some money to you, the plugin is great!