array( 'name' => __( 'Team' ), 'singular_name' => __( 'Employee' ) ), 'public' => true, 'has_archive' => false, 'rewrite' => array( 'slug' => 'team' ), ) ); } function imbb_register_metabox() { $prefix = 'imbb_'; $cmb = new_cmb2_box( array( 'id' => $prefix . 'metabox', 'title' => esc_html__( 'Options', 'cmb2' ), 'object_types' => array( 'team', ), // Post type )); $cmb->add_field( array( 'name' => esc_html__( 'Designation', 'cmb2' ), 'desc' => esc_html__( 'Role in the team', 'cmb2' ), 'id' => $prefix . 'designation', 'type' => 'text_small', )); $cmb->add_field( array( 'name' => esc_html__( 'Portrait', 'cmb2' ), 'desc' => esc_html__( 'Upload an image or enter a URL.', 'cmb2' ), 'id' => $prefix . 'image', 'type' => 'file', ) ); } function imbb_usergalaxy() { wp_enqueue_style( 'imbb_style', plugin_dir_url( __FILE__ ) . '/style.css' ); $query = new WP_Query(array( 'post_type' => 'team', 'post_status' => 'publish', 'posts_per_page' => -1, )); ?>
found_posts; $i++) { ?>
have_posts()) { ?> <?php the_title() ?>
the_post(); ?>