I have v1.8.6 of Custom Field Template installed and everything thus far has been going very smoothly with it. I've got a number of custom post types where I need to display select boxes or checkboxes of entries in a different post type (example: what employees worked on a project).
The following code works great for select boxes:
Template Content
[Project Team Members]
type = select
code = 2
PHP Code
//Template #0 - Project - Display Resources in a selectbox
$resources = new WP_Query('post_type=resources&post_status=publish&posts_per_page=-1' );
$resourceNames = array();
if($resources->have_posts()) : while($resources->have_posts()) : $resources->the_post();
$resourceNames[] = get_the_title();
endwhile; endif;
$values = $resourceNames;
When I change the field type from select to checkbox the entire contents of my template disappear in the editing window. Doing a basic array in the same PHP box
$values = array('cat','dog','bat');
does work. All the documentation for select and checkbox appear to say the exact same syntax is required.
HALP???