站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Customizing Your Sidebar
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==文章列表== Part of helping your visitors navigate your site is to point them towards specific posts and archives. Your most recent posts and archives can be displayed in a variety of ways in your sidebar. The WordPress Classic and Default Themes showcase the archives by month: 通过向访客指向某篇文章和存档,可以帮助访客在你的站点导航。你最近的文章和归档可以在你的边栏上以不同的方式显示。WordPress经典的和默认的主题按月显示归档: <pre><li id="archives"><?php _e('Archives:'); ?> <ul> <?php wp_get_archives('type=monthly'); ?> </ul></pre> <pre><li id="archives"><?php _e('Archives:'); ?> <ul> <?php wp_get_archives('type=monthly'); ?> </ul></pre> Using the [[WordPress:Template_Tags/wp_get_archives|wp_get_archives()]] template tag, you can customize this list in a variety of ways. Let's say you want to list the last 15 posts you've written by their title. Replace the <tt>type=monthly</tt> as follows: 使用[[WordPress:Template_Tags/wp_get_archives|wp_get_archives()]],你可以以许多不同的方式,自定义列表。假如你想要列出你写的最近15篇文章的标题。如下,代替<tt>type=monthly</tt>: <pre><?php wp_get_archives('type=postbypost&limit=15'); ?></pre> <pre><?php wp_get_archives('type=postbypost&limit=15'); ?></pre> There are also [[WordPress:Plugins]] which can help you customize different ways of showcasing your lists of posts. They can be customized by category, most commented on, most recent, most recently updated, and the list goes on. 也有[[WordPress:Plugins|插件]]可以帮助你自定义许多不同的显示文章列表的方式。文章可以通过类别显示,评论数目的多少,或者最新发表的时间顺序,最新更新的时间次序,或者列表次序显示。 [http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/ Coffee2code's Customizable Post Listings] offers myriad ways of creating a customizable list of posts in your sidebar. For example, if you would like to create a list of the 5 posts that have most recently been commented on: [http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/ Coffee2code的可自定义的文章列表]提供了在边栏上列出文章的许多不同的方式。例如,你可以创建一个包含5篇文章的列表,这5篇文章最近所得的评论最多: <pre><ul>Recently Commented Posts <?php c2c_get_recently_commented(5); ?> </ul></pre> <pre><ul>Recently Commented Posts <?php c2c_get_recently_commented(5); ?> </ul></pre> There are several plugins that will generate a list of related posts to the one you are viewing. One of them, [http://www.w-a-s-a-b-i.com/archives/2004/05/26/wordpress-related-entries-plugin/ WordPress Related Entries Plugin by Wasabi], is easily activated and might appear like this in your sidebar to return a result of ten related posts in a list: 有几个插件,可以产生你将要浏览的相关文章的列表。其中的一个插件,[http://www.w-a-s-a-b-i.com/archives/2004/05/26/wordpress-related-entries-plugin/ WordPress Related Entries Plugin by Wasabi],非常容易激活,而且在你的边栏中,可能会返回列表中十篇相关的文章: <pre><li id="related"><?php _e('Related Articles'); ?> <ul><?php related_posts(10, 10, '<li>', '</li>', '', '', false, false); ?></ul></li></pre> <pre><li id="related"><?php _e('Related Articles'); ?> <ul><?php related_posts(10, 10, '<li>', '</li>', '', '', false, false); ?></ul></li></pre> This is just the tip of the iceberg for ways of listing posts in your sidebar. You can find more on your visit to the plugin sites listed below. 上述只介绍了一点在边栏中列出文章的方式。你可以通过访问下面所列的插件站点找到更多的在边栏中列出文章的方式。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)