Skip to content

Commit

Permalink
Add category field for good measure
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsternberg committed Apr 6, 2017
1 parent 0af64bd commit b110329
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions front-end/cmb2-front-end-submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ function wds_frontend_form_register() {
),
) );

$cmb->add_field( array(
'name' => __( 'Categories', 'wds-post-submit' ),
'id' => 'submitted_categories',
'type' => 'taxonomy_multicheck',
'taxonomy' => 'category', // Taxonomy Slug
) );

$cmb->add_field( array(
'name' => __( 'Your Name', 'wds-post-submit' ),
'desc' => __( 'Please enter your name for author credit on the new post.', 'wds-post-submit' ),
Expand Down

0 comments on commit b110329

Please sign in to comment.