;

方式1:more方式 这是wordpress里面自带的默认的简单最直接的方法,在文章中需要进行截断的地方加入 more,实现将你的文章从该标签的地方截断,前面部分作为首页显示的文章摘要,内容页不做任何影响。 方式2:采用the_excerpt()代替the_content()函数 它是先判断你是否有手动输入的摘要,如果没有再将文章内的前面截断部分的输出,而且是不换行的输出。而the_content()就是全文输出了。 方式3:使用函数功能获取文章开头的固定字数 functions.php修改 方式4:使用ordpress摘要插件

wordpress内容摘要 2016年6月30日
;

社交网络链接菜单,此处设置社交媒体的链接,比如 微博,微信,人人等。 wordpress 默认只能显示国外社交媒体图标,不在此列表的会只显示默认图标。 1.Twitter 2.Facebook 3.Google+ 4.RSS Feed 5.Github 6.YouTube 7.WordPress 8.Codepen 9.Digg 10.Dribbble 11.Dropbox 12.Flickr 13.Foursquare 14.Instagram 15.LinkedIn 16.Email (mailto: links) 17.Pinterest 18.Pocket 19.PollDaddy 20.Reddit 21.Spotify 22.StumbleUpon 23.Tumblr 24.Twitch 25.Vimeo

社交网络链接菜单 2016年6月29日
;

config.php 默认权限 为644 wordpress权限说明

config.php 默认权限 2016年6月16日
;

循环:http://codex.wordpress.org/zh-cn:The_Loop_in_Action 条件标签:http://codex.wordpress.org/zh-cn:%E6%9D%A1%E4%BB%B6%E6%A0%87%E7%AD%BE 模板层次:http://codex.wordpress.org/zh-cn:%E6%A8%A1%E6%9D%BF%E5%B1%82%E6%AC%A1 在最简单的情况下,一个WordPress主题由两个文件构成: style.css index.php 层次结构   文件链接 自定义页面模板 在自定义页面模板的文件顶部,你必须要这么写: <?php /* Template Name: Snarfer */ ?> 这个模板名字会作为一个链接出现在主题编辑器中,单击它就可以编辑这个文件。 你可是使用任何以.php为后缀的有效文件名(WordPress保留了特定的文件名以供特殊用途)。 提醒:当创建或编辑页面时,除非你按如上方法定义了至少一个模板,否则页面模板类型选择菜单不会出现。   bloginfo()   the_post(); the_content(); $wp_query->post_count

wordpress 主题 文件构成 2016年6月13日
;

名称:Netease Music tip:阿里云海外服务器添加歌单失败,本地测试可以

wordpress插件 2016年6月13日
;

代码规范

WordPress 代码规范 2016年6月12日
;

软件:Poedit 文件目录:wp-content/languages/zh_CN.po  (此目录下通用汉化文件,theme下为对应主题汉化) 编辑汉化后会会自动生成一个zh_CN.mo文件,覆盖即可 通常themes文件夹内还有 针对不同主题的汉化 找到对应文件 汉化即可

wordpress 主题汉化 2016年6月12日
;

https://codex.wordpress.org/Template_Tags reference Template tags files are stored in the wp-includes directory. The files have the suffix of “-template.php” to distinguish them from other WordPress files. There are 9 template tags files: wp-includes/general-template.php wp-includes/author-template.php wp-includes/bookmark-template.php wp-includes/category-template.php wp-includes/comment-template.php wp-includes/link-template.php wp-includes/post-template.php wp-includes/post-thumbnail-template.php wp-includes/nav-menu-template.php   循环

Template_Tags 2016年6月12日
;

路径一: wp-includes/script-loader.php 查找替换googleapis为useso,注意http及https的对应 通常主题下还会添加自己的字体文件,所以 查找wp-content/themes/对应主题/header.php,对应的字体引用以替换 在三个默认主题中,还需要修改主题下的 functions.php

wordpress 字体调用,修改谷歌字体路径为useso 2016年6月12日