Get Custom Field
				
				
                
                    
                    
                
                
                    
						
                
                
                    I'm sure that there is a function to easily do this or that I'm on the right track but, did something wrong.  I created a custom field with 3 checkboxes.  I need to get that custom field and see which checkboxes are selected in order to determine the visibility of some options in sidebar-contact.php.  I thought that I would be able to use get_post_meta but, this doesn't work.  I assume because the value returned is an array.  Assuming that it was an array I tried
$contactMethods = explode(',',get_post_meta($post->ID, 'cp_contact_methods'));
foreach ( $contactMethods as $name) 
...
This didn't work for me either.  Any help would be appreciated.  
Thanks,