在主题的functions.php里面加入以下代码:
//说说 add_action('init', 'my_custom_init'); function my_custom_init() { labels = array( 'name' => '说说', 'singular_name' => 'singularname', 'add_new' => '发表说说', 'add_new_item' => '发表说说', 'edit_item' => '编辑说说', 'new_item' => '新说说', 'view_item' => '查看说说', 'search_items' => '搜索说说', 'not_found' => '暂无说说', 'not_found_in_trash' => '没有已遗弃的说说', 'parent_item_colon' => '', 'menu_name' => '说说' );args = array( 'labels' => labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => true, 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','editor','author') ); register_post_type('shuoshuo',args); }
然后新建一个shuoshuo.php文件放到你正在使用的主题根目录里把下面代码放入shuoshuo.php;
%MINIFYHTMLd71021454f72c02933e545f229f039fd47% %MINIFYHTMLd71021454f72c02933e545f229f039fd4%
然后在wordpress后台新建单页模板选择说说,头像在shuoshuo.php文件修改
2020年1月9日 下午11:23 1F
请问我按照文章设置完之后,怎么给说说界面添加侧边的小工具呢?我看您这说说界面有小工具
我的说说