Error Using taxonomy_select?
-
I added a taxonomy_select field like so:
$cmb_lqd_sermons->add_field( array( 'name' => __( 'Speaker', 'lqd_smp' ), 'desc' => __( 'Choose the speaker.' ), 'id' => $prefix . 'sermon_speaker1', 'taxonomy_select' => 'speakers', // TODO: Add support for multiple speakers? 'type' => 'taxonomy_select', ) );
Similar code works fine:
$cmb_lqd_sermons->add_field( array( 'name' => __( 'Speaker', 'lqd_smp' ), 'desc' => __( 'Choose the speaker.' ), 'id' => $prefix . 'sermon_speaker', 'type' => 'select', 'show_option_none' => true, 'options' => array( 'need_to_pull' => __( 'Need to Pull', 'lqd_smp' ), ), ) );
But the taxonomy_select causes the following error:
Notice: Trying to get property of non-object in /home/ubuntu/workspace/wp-content/plugins/sermon-manager-plus/includes/cmb2/includes/CMB2_Types.php on line 682
Any thoughts?
Thanks!
Dave
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error Using taxonomy_select?’ is closed to new replies.