Create a custom post type in WordPress. First of all, you have to use the default WordPress hooks. add_action. add_action( 'init', 'my_custom_post_yblog' ); function my_custom_post_yblog(){ $labels = array( 'name' => _x( 'yblog', 'post type general name' ), 'singular_name' => _x( 'yblog', 'post type singular name' ), 'add_new' => _x( 'Add New', 'yblog' ), 'add_new_item' => __( 'Add New yblog' ), 'edit_item' => __( 'Edit yblog' ), 'new_item' => __( 'New yblog' ), 'all_items' => __( 'All yblog' ), 'view_item' => __( 'View yblog' ), 'search_it...
Comments
Post a Comment