Home » 博客建设

为你的 WordPress 博客建立“导航系统”

为你的WordPress 博客建立“导航系统”不仅可以让你的读者在阅读文章清楚地知道自己身在何处,更可以优化你的博客链接,可谓一举两得的事。

 

什么是博客“导航系统”?

 

如果你不知道我所说的“导航系统”,不妨看看下面 的图片:

或者你可以看看这篇文章题目上面的“首页 > 博客建设 > 为你的WordPress 博客建立“导航系统””,这就是这里所说的博客“导航系统”了。

 

如何建立“导航系统”?

 

建立“导航系统”有两种,而且都很简单。第一种方法是将下面的代码添加到你想要博客“导航系统”出现的位置,如在单篇文章出现你就在 single.php 中添加如下代码:

 
<a href=”http://wordpressmoneyblog.com” title=”Home”>首页</a>&raquo; <?php the_category(“,”); ?>  &raquo; <?php the_title(); ?>

 

第二种方法是利用插件来实现。你可以下载 Breadcrumb NavXT 插件,上传并激活插件后,添加如下代码:

 

<div class=”breadcrumb”>
<?php
if(function_exists(‘bcn_display’))
{
bcn_display();
}
?>
</div>

 

这样你就可以得到同样的博客“导航系统”。

如果你的WordPress博客还没有建立“导航系统”现在赶紧去建一个吧。如果还有什么更好的方法,欢迎在下面留言o(∩_∩)o…

Popularity: 1% [?]

Share/Bookmark this!

Leave a reply

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally recognized avatar, please register at Gravatar.

Side Notes

This entry was posted by 莫 涯 on December 4, 2008 at 11:54 am and filed under 博客建设 category.

You can add your comments or trackback from your own site. To keep you updated to the latest discussion, you can subscribe to these comments via RSS.

This is a Gravatar-enabled weblog. To get your own globally recognized avatar, please register at Gravatar.

最新文章

最新评论

Tag Cloud

301 Redirect 301重定向 2010 about All in one seo pack AutosCraze blog CSS Darren feed FreshMag Global Translator Google GreenFun HTML Insider name.com Problogger robots.txt文件 RSS Feed seo Wordpress Wordpress 主题 Wordpress主题 代码 优惠码 关于 博客 博客建设 域名 工具 建设 技巧 提交 插件 文章 杂志型主题 标签 注册 绿色 网赚 评论 选择 链接 页面