WordPress.org

Ready to get started?Download WordPress

Forums

RSS in my Subdomain does not work! (10 posts)

  1. gjunkie1983
    Member
    Posted 5 years ago #

    I have WP installed on my site example.com, and the RSS feed works fine.

    However, I also have a subdomain with WP installed, and the RSS feed does not work.

    Mosu, I've been to the Feed Validator and it didn't help. It shows me my error but I have no idea what file it is in so I have no way of editing out the error. Do you know what file it's in?

  2. moshu
    Member
    Posted 5 years ago #

    Don't put ever anything in your footer.php file OUTSIDE of
    /body
    /html
    Everything MUST be inside of those tags.

    And it has nothing to do with subdomains - as always it is a user mistake!

  3. gjunkie1983
    Member
    Posted 5 years ago #

    ive never even opened the footer.php file. ive never changed it.
    If you wanna see it yourself, try validating blog.robotforest.com and you'll see the error.

    It's an "a href" tag that's at the top of the code and I have no idea how it got there. I've looked through all the Theme files and I can't find the code that the feed validator references.

  4. moshu
    Member
    Posted 5 years ago #

    Man, when I say something like "you have a code after the closing

    </body>
    </html>

    -- that means that I have looked at it.
    Checked even the feed validator:
    http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fblog.robotforest.com%2Ffeed
    Did you click on the "help" link(s)???

    This is what you have in your source code:

    </body>
    </html>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-5060344-3");
    pageTracker._trackPageview();
    </script>

    So, who put it there if not you?
    And as I said: there must be NOTHING after the closing html tag!

  5. gjunkie1983
    Member
    Posted 5 years ago #

    I understand what you're saying that there must be nothing after the closing tags, what I'm trying to tell you is that I have no idea where the hell that code IS, as in which file! is it index.php? footer.php? which one? I dont know where to look to correct the mistake.

    And yes, I looked at the so-called help links, but they only help people who know what to look for. I have no idea what it's talking about, or for that matter, what you're talking about.

    I just need a straight answer, as in, "look in this file, edit this part of the code, and you should be good to go." I'm sure it's my own mistake, I'm not denying that, just don't slap it in my face.

  6. moshu
    Member
    Posted 5 years ago #

    I started my first reply with a "straight" answer, mentioning the footer.php file. It is always the footer file of your active theme.

    Furthermore, as you can see that code comes from the Google analytics, so either you, either a plugin put it there. There is no other way.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Check the root WordPress index.php file as well. Adding the code here is a common noob mistake.

  8. gjunkie1983
    Member
    Posted 5 years ago #

    I did place the analytics code myself in the root wordpress index.php, not in footer.php. Is all I have to do remove it from one and place it in the footer.php within those tags?

  9. moshu
    Member
    Posted 5 years ago #

    Yes. And never again touch that root index :)

  10. LadyPro
    Member
    Posted 5 years ago #

    In some period my rss does not work on site http://www.bestmoneyblogging.info. Can you pls help. I checked footer.php and index.php but i did not find anything wrong.

Topic Closed

This topic has been closed to new replies.

About this Topic