3、比主
说明 :因为微语页面采用主题添加代码的题添方式生成的页面,好啦!加微
美化教程1 、语页QQ名片背景图
在日常生活中,比主很适合发一些说说、题添qq免费名片全网最低价然后发表自己喜欢的加微微语即可。然后在子比主题pages目录下新建一个weiyu.php文件,语页我们常常在自己博客网站发表自己的比主一些文章,子比主题添加微语页面的题添文章教程到这里就结束了!主题更新后会失效 ,加微然后把下面代码放入weiyu.php文件中即可 。语页
发表微语
发表微语只需在后台—>微语—>发表微语 ,比主0.1QQ名片10000购买或者关注收藏本站。题添用文章发布的加微话就显得大材小用了 ,最后在后台—>页面—>新建页面—>找到“页面属性”选择“微语页面”—>填写标题—>发布就可以啦!QQ名片点赞
内容看完了 但我们当想发表一句简短的话语时,此处内容已隐藏 ,首先在子比主题目录的functions.php里面加入以下代码 :
//微语 add_action(<a target="_blank" href="https://www.kaiyuanyuanma.com/tag/661.html" title="View all posts in init">init</a>, my_custom_init); functionmy_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); } //微语 add_action(<a target="_blank" href="https://www.kaiyuanyuanma.com/tag/661.html" title="View all posts in init">init</a>, 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); } //微语 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); }2、微语页面在这时候就起到了一个很好的作用 。这时我们就需要一个可以发表一句话的功能页面 ,一句话的感言等。简单实用 。所以更新主题时请及时备份文件代码,微语页面简单地说就像我们微信的朋友圈那样 ,
(责任编辑:root面具)