Don’t Show Some Kind of Category Post in Wordpress Home Page

January 9th, 2009

The Phoenix TV Program《开卷八分钟》willl broadcast every work day. That means this blog will update the video very frequently, so maybe the home page of this blog will full of the television video. Becasue the television program is only collected for myself interesting, so I don’t want the posts belong to ‘开卷八分钟’ category show in home page.

Following is the instruction about how to do this:
1.Sign in your wordpress blog and go to admin console, click “Design“–>”Theme Editor“, then open ‘index.php’ file.
2.Insert the source code according to following image, the first line is in the index.php before, and the the second line is what you need to insert. then Save the file.
3.In the step 2, the ‘X’ is the category ID number that you don’t want show in home page. Click “Manage“–>”Categories“, then click the the category. In the browser’s address bar, you can see cat_ID=X. The number is the ID of the category and fill it in the place of the step 2.

相关文章

4 Comments Add your own

  • 1. 导航网  |  January 14th, 2009 at 4:17 am

    博主的文章不错。是自己写的吗?我要转载一下,请问你是原作者吗?

  • 2. starryshen  |  January 14th, 2009 at 10:51 am

    文章当然是我自己写的。 只不过介绍的方法国外网站有介绍过。 你如果要原篇转载这篇文章的话还请注明出处。

  • 3. 开平  |  January 15th, 2009 at 3:14 am

    老大啊。上次我问你的文章是不是原创的你还没答我呢。。麻烦有空了把答案发我邮箱里

  • 4. starryshen  |  January 15th, 2009 at 10:16 am

    上面的回答还不算吗? 已经回答你了。赫赫。

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


订阅

存档

最新文章

最新留言

友情链接

分类

我的豆瓣