I was using the information from the codex itself.
I got it to work. One thing I found out is that if get_bloginfo is called
inside a function then it works perfectly.
If it is outside the functions, then it throws up an error.
Ajay
Date: Sun, 12 Nov 2006 19:16:12 +0800
From: "Chen ZhaoLin" <[EMAIL PROTECTED]>
Subject: Re: [wp-testers] Problems with get_bloginfo('rss2_url') in
WP2.0.5
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
from codex, i'm using <?php bloginfo('rss2_url'); ?>
http://codex.wordpress.org/Template_Tags/bloginfo
On 11/12/06, Ajay D'Souza <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I was using the function get_bloginfo('rss2_url') in a plugin. But I get
> this error:
>
> *Fatal error*: Call to a member function on a non-object in *
> /home/adcom/public_html/wp-includes/template-functions-links.php* on
line
> *
> 185*
>
> The linke 185 in template-functions-links.php is $permalink =
> $wp_rewrite->get_feed_permastruct();
>
> template-functions-links.php has been added in 2.0.5 I believe, because
I
> couldn't find it in my installation of 2.0.4
>
> How do I find out the rss2_url if this doesn't work?
>
> Regards,
> Ajay
>
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers