public function hackgov_post_types() { $this->cpt_post = register_cuztom_post_type('Post'); $this->cpt_post->add_meta_box('post', 'Recommendation', array(array('name' => 'recommendation', 'label' => 'Recommendation', 'description' => 'Recommendation content', 'type' => 'wysiwyg'))); $this->cpt_post->add_meta_box('category', 'Recommendation', array(array('name' => 'status', 'label' => 'Status', 'description' => 'Problem Status', 'type' => 'select', 'options' => hackgov_status()), array('name' => 'category', 'label' => 'Category', 'description' => 'Category problem', 'type' => 'radios', 'options' => hackgov_category()), array('name' => 'priority', 'label' => 'Priority', 'description' => 'Priority problem', 'type' => 'radios', 'options' => hackgov_priority())), 'side'); // // register custom post status // register_post_status( 'nothing', array( // 'label' => _x( 'Nothing', 'post' ), // 'public' => true, // 'exclude_from_search' => false, // 'show_in_admin_all_list' => true, // 'show_in_admin_status_list' => true, // 'label_count' => _n_noop( 'Nothing <span class="count">(%s)</span>', 'Nothing <span class="count">(%s)</span>' ), // ) ); // // register custom post status // register_post_status( 'on-going', array( // 'label' => _x( 'On Going', 'post' ), // 'public' => true, // 'exclude_from_search' => false, // 'show_in_admin_all_list' => true, // 'show_in_admin_status_list' => true, // 'label_count' => _n_noop( 'On Going <span class="count">(%s)</span>', 'On Going <span class="count">(%s)</span>' ), // ) ); // // register custom post status // register_post_status( 'resolved', array( // 'label' => _x( 'Resolved', 'post' ), // 'public' => true, // 'exclude_from_search' => false, // 'show_in_admin_all_list' => true, // 'show_in_admin_status_list' => true, // 'label_count' => _n_noop( 'Resolved <span class="count">(%s)</span>', 'Resolved <span class="count">(%s)</span>' ), // ) ); // remove post tag and category register_taxonomy('category', array()); register_taxonomy('post_tag', array()); }
<div class="tj_drop_image"> <div class="caption">Click atau Drag Gambar<br><span>Disini</span></div> <input type="file" class="tj_select_file"> <input type="hidden" class="uploaded_img images" name="featured_image" value=""> </div> </div> </div> <div class="form-group"> <label>Judul</label> <input class="form-control" type="text" name="title" placeholder="Judul"> </div> <div class="form-group"> <label>Kategori</label> <select name="category" class="form-control"> <?php foreach (hackgov_category() as $key => $value) { echo '<option value="' . $key . '">' . $value . '</option>'; } ?> </select> </div> <div class="form-group"> <label>Lokasi</label> <div class="container-input"> <input type="hidden" id="latitude" value="-7.72711716283" name="latitude" placeholder="latitude"> <input type="hidden" id="longitude" value="110.40847454603272" name="longitude" placeholder="longitude"> <input class="postcode form-control" id="location_address" name="location_address" type="text" placeholder="Tulis alamat" autocomplete="off" style="width:100%;" value="<?php echo $location_name; ?> "> </div>