Issue: There's a conflict between ListingPro Plugin and GamiPress. The input fields when adding a new achievement in GamiPress are not showing when ListingPro Plugin is enabled.
Fix: Add this code to the very bottom of functions.php
add_action( 'cmb2_admin_init', 'cmb2_achievement_type' );/** * Define the metabox and field configurations. */function cmb2_achievement_type() {
/** * Initiate the metabox */ $cmb = new_cmb2_box( array( 'id' => 'achievement-type-data', 'title' => __( 'Achievement Type Data', 'cmb2' ), 'object_types' => array( 'achievement-type', ), // Post type 'context' => 'advanced', 'priority' => 'high', 'show_names' => true, //
) );
// Singular Name text field $cmb->add_field( array( 'name' => __( 'Singular Name', 'cmb2' ), 'desc' => __( 'The singular name for this achievement type.', 'cmb2' ), 'id' => 'post_title', 'type' => 'text', 'show_on_cb' => 'cmb2_hide_if_no_cats', ) );
// Plural Name text field $cmb->add_field( array( 'name' => __( 'Plural Name', 'cmb2' ), 'desc' => __( 'The plural name for this achievement type.', 'cmb2' ), 'id' => '_gamipress_plural_name', 'type' => 'text', ) );
// Slug text field $cmb->add_field( array( 'name' => __( 'Slug', 'cmb2' ), 'desc' => __( 'Slug is used for internal references, as some shortcode attributes, to completely differentiate this achievement type from any other (leave blank to automatically generate one).', 'cmb2' ), 'id' => 'post_name', 'type' => 'text', ) );
}