Title: rss2_url variable comes from?
Last modified: August 18, 2016

---

# rss2_url variable comes from?

 *  [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/)
 * when clicking on the rss image for my site, it goes to my sites homepage
 * [http://www.alternapop.com](http://www.alternapop.com) and not the feed link
 * <link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php 
   bloginfo(‘rss2_url’); ?>” />
 * i’ve poked around the code and the options via the interface and am not sure 
   where this variable ‘rss2_url’ is coming from. i could hack the link directly
   but would rather do it properly.
    thanks!

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/rss2_url-variable-comes-from/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/rss2_url-variable-comes-from/page/2/?output_format=md)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523215)
 * You are looking in the wrong place: in the head portion.
    Check those links in
   the body.
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523218)
 * i don’t see any reference for rss in “Main Index Template”. the two images at
   the top right of my site are what i’m referring to. these are inserted via the
   header.
    am i misunderstanding you?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523221)
 * Header, as in header.php and the `<head>` section of a html file are two different
   things!
    Yes, you misunderstood 😉
 * Any html file should have
 *     ```
       <html>
       <head>
       ...stuff goes here...
       </head>
       <body>
       ... this is what you see!...
       </body>
       </html>
       ```
   
 * I said: you were looking in the _head_ instead of the body. In many themes the
   body part starts out in the header file.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523222)
 * Yes, you are misunderstanding him. Those two images at the top right of your 
   site are *not* related to the <link> tag in the <head> portion of the page.
 * In your case, you need to look lower down the page, where this code is:
 *     ```
       <div id="hdrimg">
       <span class="validation">
       <a href=""><img src="http://alternapop.com/wp-content/themes/fluidity3c-10/images/rss.gif" alt="Subscribe to RSS" /></a>
       <a href=""><img src="http://alternapop.com/wp-content/themes/fluidity3c-10/images/rsscomments.gif" alt="Subscribe to Comments" /></a>
       </span>
       ```
   
 * The href’s are empty. That’s why those links are broken. Find where those href’s
   are generated in your template (probably at the bottom of header.php) and fix
   them there.
 * As for your original question, ‘rss2_url’ is a hardcoded parameter for the bloginfo()
   function. You can find other possible parameters here:
    [http://codex.wordpress.org/Template_Tags/bloginfo](http://codex.wordpress.org/Template_Tags/bloginfo)
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523230)
 * this is the body portion. the href link isn’t empty.
 *     ```
       <div id="hdrimg">
       <span class="validation">
       <a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="Subscribe to RSS" /></a>
       ```
   
 * the body portion uses the same function and points to the same variable. where
   is this variable coming from?
 * thanks!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523233)
 * Put your code ALWAYS in between the “code” tags – you have it right above the
   input area… if you want anybody to take a look at it 🙂
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523236)
 * sorry about the code… fixed its display.
    the body href has the same function.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523241)
 * _where is this variable coming from?_
 * Like I said before, it is *not* a variable. It’s a hard-coded parameter. One 
   of many possible parameters. See here:
    [http://codex.wordpress.org/Template_Tags/bloginfo](http://codex.wordpress.org/Template_Tags/bloginfo)
 * Now, I also see that your link variable has a broken href too, as do your blog,
   contact, and links page tabs.
 * This suggests a broken permalink structure. Try rebuilding your permalinks and
   see if that helps. Options->Permalinks->Update Permalink Structure.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523242)
 * Now I see what you mean: for some reason the template tag `<?php bloginfo('rss2_url');?
   >` is displaying an empty link both at the top and in your sidebar:
    `<a href
   ="">`
 * Try what Otto said about the permalinks.
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523249)
 * changing permalinks to ‘default’ changes the link to a site that i visit but 
   is otherwise not connected to me at all. ??? how in the hell could this be happening?
 * changing to any of the other options (numeric or date/name based) doesn’t fix
   it.
 * ?
 * thanks guys!
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523255)
 * _changing permalinks to ‘default’ changes the link to a site that i visit but
   is otherwise not connected to me at all. ??? how in the hell could this be happening?_
 * There must be something very wrong with your whole setup.
 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523260)
 * Fixing some of this stuff might be useful.
    [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.alternapop.com%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.alternapop.com%2Findex.php&charset=%28detect+automatically%29&doctype=Inline&ss=1)
   Also why does your site have the index.php on the end of it? Is this the way 
   it’s set up in admin -> Options?
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523266)
 * thanks samboll…
    i did just see that i had a space in a new addition to the stylesheet
   that was causing some major hangups. i’ll look into the other stuff.
 * isn’t index.php supposed to be the default page? what else would it be?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523268)
 * Don’t ask back, just answer it 😉
    A normal server does know that index is the
   default page. But in the Options (that samboll asked) you should NOT have index.
   php in the URI options, only addresses ending with folder names!!!
 *  Thread Starter [alternapop](https://wordpress.org/support/users/alternapop/)
 * (@alternapop)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/#post-523269)
 * my URL under wordpress and blog (options) are set with this:
 * [http://alternapop.com](http://alternapop.com)
 * my index.html page redirects to index.php

Viewing 15 replies - 1 through 15 (of 20 total)

1 [2](https://wordpress.org/support/topic/rss2_url-variable-comes-from/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/rss2_url-variable-comes-from/page/2/?output_format=md)

The topic ‘rss2_url variable comes from?’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 20 replies
 * 4 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/rss2_url-variable-comes-from/page/2/#post-523291)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
