• Resolved hannahrosecreative

    (@hannahrosecreative)


    I’ve noticed that recently when adding a new sermon, the service type box isn’t empty by default, instead the top option is displayed. However if you just leave the box alone and publish the sermon, no service type is displayed (correctly) but instead of a service type, there are empty parenthesis. Here’s a link to the site: https://tcbc.us/sermons/

    This is only happening on recently posted sermons. Any help is appreciated!

Viewing 1 replies (of 1 total)
  • Plugin Author wpforchurch

    (@wpforchurch)

    Hey Hannah,

    Thanks for pointing that out, we’ll look to change the behavior of that for the next release. It would be better if that started of empty, not pre-filled.

    For now, can you please try going to the plugin > includes > types-taxonomies.php

    Then around line 286 where the service type field array is, add the following option after 'type' => 'select',

    show_option_none' => true,

    So on the end it will look like:

    $cmb->add_field( array(
    		'name'    => __( 'Service Type', 'sermon-manager' ),
    		'desc'    => __( 'Select the type of service. Modify service types in Sermons -> Service Types.', 'sermon-manager' ),
    		'id'      => 'wpfc_service_type',
    		'type'    => 'select',
    		'show_option_none' => true,
    		'options' => cmb2_get_term_options( 'wpfc_service_type' ),
    	) );

    Let me know how you go with that, then we can push that out in the next release.

    Thanks Hannah,

    Igor

Viewing 1 replies (of 1 total)
  • The topic ‘Parenthesis () displaying when service type is not specified’ is closed to new replies.