Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'init', 'cptui_register_my_cpt_blog' );
- function cptui_register_my_cpt_blog() {
- register_post_type(‘blog’, array(
- "labels" => 'Livalest's Log',
- "description" => "",
- "public" => true,
- "show_ui" => true,
- "has_archive" => true,
- "show_in_menu" => true,
- "exclude_from_search" => false,
- "capability_type" => "post",
- "map_meta_cap" => true,
- "hierarchical" => false,
- "rewrite" => array( "slug" => "blog", "with_front" => true ),
- "query_var" => true,
- "menu_position" => 5,
- "supports" => array( "title", "editor", "excerpt", "custom-fields", "comments", "thumbnail" ),
- "taxonomies" => array( "category", "post_tag" ),
- "labels" => array(
- "name" => "ブログ",
- "singular_name" => "",
- "menu_name" => "Livalest's Log",
- "all_items" => "すべてのLivalest's Log",
- "add_new" => "新規追加",
- "add_new_item" => "Livalest's Logの新規追加",
- "edit" => "編集",
- "edit_item" => "Livalest's Logの編集",
- "new_item" => "新しいLivalest's Log",
- "view" => "表示",
- "view_item" => "Livalest's Logを表示",
- "search_items" => "Livalest's Logを検索",
- "not_found" => "見つかりません",
- "not_found_in_trash" => "ゴミ箱にはありません",
- "parent" => "親",
- ),
- "yarpp_support" => true
- ));}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement