Home > 网站建设 > WordPress的网站地图生成器

WordPress的网站地图生成器

August 28th, 2008

Sitemap Generator Plugin for Wordpress

http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/

与Google XML Sitemaps插件不同,Dagon Design Sitemap Generator是服务于你的读者的,并不是给搜索引擎看的。

安装很简单,1~5和其他插件完全一样,就step 6需要你在想显示地图的页面插入<!– ddsitemapgen –>
1. Download sitemap-generator.zip and uncompress
2. Upload the entire sitemap-generator folder (not just the files inside) to your plugins directory
3. Activate the plugin in your administration panel
4. Configure the plugin in the options panel (under DDSitemapGen)
5. If using permalinks, read the permalink section below
6. Simply add the following line to a WordPress page (where you would like the sitemap to display):  <!– ddsitemapgen –>

效果见 http://www.thinkedge.cn/?page_id=26

使用方法有两种:

◆ 建立单独的 Sitemap 页面:只要去发表(Write)一个新页面(Write Page)即可,其中新建页面内容是下面的这一行代码:<!– ddsitemapgen –>
注: 这句代码要在<html>编码方式下写,如果不在<html>格式下写,站点地图就无法显示出来。
◆ 在页面模板中调用 Sitemap:只需在页面模板文件中,调用下面的函数即可
PHP代码 <?php echo ddsg_create_sitemap(); ?>

使用设置:
◇ 在 DDSitemapGen 项中,用户可以根据自己的需要设置生成的 Sitemap 的风格、样式以及内容等
◇ 用户还可以设置该 Sitemap 页面的依旧地址(须与建立该页面时的 page slug 一致)
◇ 在设置项的最后,还提供了一个指向 XML 格式 Sitemap 文件的设置项
◇ 该插件还提供了两个供美化用途的 CSS class 项

.ddsg-wrapper - Sitemap 整体样式(Div around the entire sitemap)
.ddsg-pagenav - 导航条样式(Div around the page navigation)

thinkedge 网站建设

  1. No comments yet.
  1. No trackbacks yet.