[wp-testers] Re: wp-testers Digest, Vol 21, Issue 14

Ajay D'Souza ajaydsouza at gmail.com
Sun Nov 12 19:06:26 GMT 2006


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" <tedfox at gmail.com>
> Subject: Re: [wp-testers] Problems with get_bloginfo('rss2_url') in
>         WP2.0.5
> To: wp-testers at lists.automattic.com
> Message-ID:
>         <c6f1facd0611120316vcf0bf12o767ea6e441f033f1 at mail.gmail.com>
> 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 <ajaydsouza at gmail.com> 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
> >


More information about the wp-testers mailing list