在functions.php文件中添加以下代码:
add_action('init', 'cptui_register_my_cpt_miniblog'); function cptui_register_my_cpt_miniblog() { register_post_type('miniblog', array( 'label' => '微博客', 'description' => '一个微博客', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => false, 'rewrite' => array('slug' => 'miniblog', 'with_front' => true), 'query_var' => true, 'menu_icon' => 'http://www.nixonli.com/wp-content/themes/nixonli/img/weibo.png', 'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'), 'taxonomies' => array('post_tag'), 'labels' => array ( 'name' => '微博客', 'singular_name' => '微博客', 'menu_name' => '微博客', 'add_new' => '添加', 'add_new_item' => '添加微博客', 'edit' => '编辑', 'edit_item' => '编辑微博客', 'new_item' => '新微博客', 'view' => '查看', 'view_item' => '查看微博客', 'search_items' => '搜索微博客', 'not_found' => '未找到', 'not_found_in_trash' => '在回收站中没有找到', 'parent' => '父级', ) ) ); }

关注公众号『窗外天空』
获取更多建站运营运维新知!互联网创业、前沿技术......
最新评论
水淀粉vdfv
有其他下载方式么,网站上的点击下载后没有任何反应,或者直接发给我一下?83835079@qq.com
你好,我的型号ELECOM WRC-X3200GST3,ARMv8 Processor rev 4构架,CPU mediatek/mt7622,找了很久没有找到
我的也是这样。一直无法确认ARCH架构,或是不支持。一直没办法用。不知道怎么办了
您好,现在安装上了,可是ssr plus+配置好节点也没用,一直都是未运行,节点是有效的; 另外那个passwall2一找开就提示"无法确认ARCH架构,或是不支持", 麻烦大佬帮忙看下是什么问题,谢谢!