Limit Posts Automatically 日志自动截断 插件怎么用

文章长了,wordppress首页就显得不够清爽和整齐。早先研究了两个修改代码的方法。一是手动每篇添加,使用wordpress提供的more标签,二是修改主题。找到wp-content/themes下你使用的模板目录,查找目录中的文件,如果有home.php则修改home.php,没有的话就修改index.php,找到<?php the_content(); ?>这一行,将其修改为以下代码:

<?php if(is_category() || is_archive() || is_home() ) {
the_excerpt();
} else {
the_content(‘Read the rest of this entry &raquo;’);
} ?>
<div><div><?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?> so far | <a href=”<?php the_permalink() ?>”>Read On &raquo;</a></div></div>

不过,后来找到一个插件 Limit Posts Automatically,有汉化版叫“日志自动截断”(名字可真直白,一点也不文艺)。今天装了下尝试,确实不错!虽然傻瓜化操作,还是遇到两个小困难,记录下。

先是安装后,找不到设置的地方,琢磨了半天,发现插件没有启用 -_-!

然后就启用了,直接就点了编辑,看到满屏代码差点昏倒。本想避开改代码怎么还是代码呢?定了定神,继续求助狗哥,才知道要到 后台-设置下找到插件……

然后就简单了,插件汉化得也相当直白易懂,直接填空即可。文字截断方式选了“按照字符数”,截取前面“400”个字符(觉得这样既清爽,也能交代文章主题),结束符号用了“……”,连接文字是“阅读全文”。

插件作者的主页,貌似……挂了,想找官方下载找不到了,希望哪天主页复活,也去道谢!

发布者

ningqun

心中无事一床宽

《Limit Posts Automatically 日志自动截断 插件怎么用》有6个想法

  1. 私は現金を必要と私はオートローンのタイトルAZの申請をしたいと思います。私はオートローンタイトルAZ申請するべきだろうか。
    [url=http://www.shendu.com.cn/dataxy/index.html]加州赌场叫什么名字[/url]

  2. There are undoubtedly lots of details like that to take into consideration. That is a fantastic point to bring up. I offer the thoughts above as general inspiration but clearly you will find questions like the 1 you bring up exactly where essentially the most critical factor are going to be working in honest very good faith. I don?t know if perfect practices have emerged about items like that, but I’m certain that your job is clearly identified as a fair game. Both boys and girls really feel the impact of just a moment’s pleasure, for the rest of their lives.
    [url=http://carolinafalkholt.com/Falkholt_files/link.asp?key=jordan-shoes-for-cheap-439381]jordan shoes for cheap[/url]

  3. You produced some decent points there. I looked on the web for the problem and identified most people will go together with along with your internet site.
    [url=http://www.gransolarghella.com/public/link.asp?key=cheap-jordans-5918201]cheap jordans[/url]

  4. Youre so cool! I dont suppose Ive read anything like this prior to. So nice to acquire somebody with some original thoughts on this subject. realy thank you for beginning this up. this web page is some thing that is required on the internet, someone with a small originality. beneficial job for bringing something new to the world wide web!
    [url=http://rolexwatchesfwk.do.pe/2013/10/18/air-jordans-a-favorite-decision-in-sports-shoe-marketplace/]jordans free shipping[/url]

  5. Oh my goodness! an wonderful article dude. Thank you In spite of this I’m experiencing problem with ur rss . Do not know why Unable to subscribe to it. Is there any person getting identical rss problem? Any person who knows kindly respond. Thnkx
    [url=http://www.freewebsite-service.com/rolexwatchesfwk/Blog.php?id=162355&snavn=Air+Jordans+2010+is+not+merely+a+celebration+sort+of+shoe]jordans for sale[/url]

发表评论

邮箱地址不会被公开。 必填项已用*标注