• howdy. I’m trying to list all my WP users in a custom post type via a custom meta box. The code I have is below which works but it’s not even close to what I need since the options are static. I need to have a dynamically generated list of checkboxes with one checkbox per WP user…

    $meta_boxes[] = array(
    	'id' => 'client_meta_boxes',
    	'title' => 'Owners',
    	'pages' => array('clients'),
    	'context' => 'normal',
    	'priority' => 'high',
    	'fields' => array(
    		array(
    			'name' => 'Owner Name',
    			'id' => $prefix . 'owners',
    			'type' => 'select'
    		)
    	)
    );

    I tried to throw a foreach statement in there but to no avail. Any help would be appreciated.

  • The topic ‘list all WP users in custom meta box’ is closed to new replies.