发新话题
打印

[问题求助] 使用wordpress所遇问题

使用wordpress所遇问题

我所适用的模板是 glossyblack10
但是却有些问题

1.在最新评论下会显示如下错误
最新评论
Fatal error: Call to a member function get_results() on a non-object in /home/k5pccn/public_html/wordpress/wp-content/themes/Glossy Black/simple_recent_comments.php on line 71


2.点击rss后会出现一大片代码,出错
点击rss后,就会出现如下的代码错误

<?xml version="1.0" encoding="UTF-8" ?>
- <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
<title>k5pc</title>

<atom:link href="http://www.k5pc.cn/feed/" rel="self" type="application/rss+xml" />

<link>http://www.k5pc.cn</link>

<description>大众软件,文摘杂志,实用小软件工具</description>

<pubDate>Thu, 02 Oct 2008 07:30:56 +0000</pubDate>

<generator>http://wordpress.org/?v=2.6.2</generator>

<language>en</language>

- <item>
<title>中国玩家:打遍外服又如何</title>

<link>http://www.k5pc.cn/category%/waifu/</link>

<comments>http://www.k5pc.cn/category%/waifu/#comments</comments>

<pubDate>Thu, 02 Oct 2008 07:19:19 +0000</pubDate>

<dc:creator>admin</dc:creator>

- <category>
[url=]-[/url] <![CDATA[ 说三道四 ]]>
</category>


- <category>
[url=]-[/url] <![CDATA[ 大众软件 玩家 游戏 说三道四 评论 外服 ]]>
</category>


<guid isPermaLink="false">http://www.k5pc.cn/?p=6</guid>

- <description>
[url=]-[/url] <![CDATA[ ]]>
</description>


- <content:encoded>
[url=]-[/url] <![CDATA[ <p><img alt="" src="http://w.886.cn/4vT7/154037419/154037419_2110.jpg" title="玩家3" class="alignnone" width="386" height="540" /><img alt="" src="http://w.886.cn/4vT7/154037348/154037348_48881.jpg" title="玩家2" class="alignleft" width="401" height="540" /><a href="http://w.886.cn/4vT7/154037315/154037315_39943.jpg"><img class="alignleft" title="玩家" src="http://w.886.cn/4vT7/154037315/154037315_39943.jpg" alt="" width="395" height="540" /></a></p> ]]>
</content:encoded>


<wfw:commentRss>http://www.k5pc.cn/category%/waifu/feed/</wfw:commentRss>

</item>


- <item>
<title>您好,世界!</title>

<link>http://www.k5pc.cn/category%/hello-world/</link>

<comments>http://www.k5pc.cn/category%/hello-world/#comments</comments>

<pubDate>Thu, 02 Oct 2008 06:30:22 +0000</pubDate>

<dc:creator>admin</dc:creator>

- <category>
[url=]-[/url] <![CDATA[ 未分类 ]]>
</category>


<guid isPermaLink="false">http://www.k5pc.cn/wordpress/?p=1</guid>

- <description>
[url=]-[/url] <![CDATA[ 欢迎来到 WordPress。这是您的第一篇文章。您可以修改或者把它删除,然后开始写博客! ]]>
</description>


- <content:encoded>
[url=]-[/url] <![CDATA[ <p>欢迎来到 WordPress。这是您的第一篇文章。您可以修改或者把它删除,然后开始写博客!</p> ]]>
</content:encoded>


<wfw:commentRss>http://www.k5pc.cn/category%/hello-world/feed/</wfw:commentRss>

</item>


</channel>


</rss>



请问这两个问题如何解决?我试过其他主题一样会出现在这个问题的,还有我试过重新安装过WordPress一样会有这个问题的,请懂得朋友相助!!

TOP

我用的模板是Aeros 1.0.4,刚开始点RSS,情况和你差不多,就是这些代码,但要是在新标签(新窗口)打开RSS地址则正常,(你试试)后来我在head.php 里改成了新窗口打开RSS,正常了,但是应该不用改的!  我在FF里试了,不用改就可直接订阅,奇怪啊。

文章回复的RSS还是这样的问题,不会改了。出现这样问题的原因是什么,我去Aeros 1.0.4的Demo站,也是这样的问题,主题作者不会犯这种小错误吧,还是浏览器的问题,还是操作系统

还请高手指点

帮顶

TOP

在新窗口打开还是不行,依然会显示一大片代码````````
郁闷,搞这些都用了几个星期的时间了!!

但是有个别的点击RSS可以正常订阅,可绝大多数点击后会出现代码`````

TOP

1.你没有装simple_recent_comments插件
2.这不是错误,xml文件就应该是这样

TOP

simple_recent_comments这个插件没有安装过
simple_recent_comments这个插件在哪里有的下载?我搜索不到```````

麻烦ls提供一下,谢谢~~

TOP

不用他原来的了,装WP Kit CN插件,用<?php wkc_recent_comments(); ?>替换sidebar.php中代码

TOP

搜索到了WP Kit CN插件

至于你说的:
用<?php wkc_recent_comments(); ?>替换sidebar.php中代码
要怎样用?我是新手,对代码那些不懂 ,能否说详细一点?

谢谢

TOP

发新话题