WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS - front page only? (19 posts)

  1. lisavollrath
    Member
    Posted 8 years ago #

    I've read through all the info in the codex, and searched old posts for this---I'm sure I'm not the only one with this issue:

    The front page of my site pulls posts from a special category, called News. None of my other posts pass through the front page. My RSS feed seems to only show updates that are posted on my front page---so, only from the one category. Is this what's supposed to happen?

    And if so, does anyone have a creative way around it?

    I've been contemplating reworking the page a bit, to just list the titles of pages that have been recently added. Would that solve my problem?

    My feed: http://www.lisavollrath.com/feed/

  2. Kafkaesqui

    Posted 8 years ago #

    It would help to know what you're using to display that one category on your front page. Is it a plugin?

  3. lisavollrath
    Member
    Posted 8 years ago #

    No, it's not a plugin. The home.php template is set up to only pull posts from the News category.

  4. Kafkaesqui

    Posted 8 years ago #

    And the code being used to do this is?

    Something added to a global WP template (or some "top level" php file) or installed in the background must be overriding the feed; unless all your most recent posts are in that category!

  5. lisavollrath
    Member
    Posted 8 years ago #

    There's nothing installed in the background---it's a home.php template.

    I have a work around that gets my 10 most recent posts onto the feed. I still don't know the answer to my question---are ALL posts on the entire site supposed to be coming across the feed, regardless of whether they appear on the home page?

  6. abrazell
    Member
    Posted 8 years ago #

    Can you provide a link and maybe the code used in your template header where the RSS is called for autodiscovery?

  7. lisavollrath
    Member
    Posted 8 years ago #

    I did provide a link, above. It's also in my profile.

    http://www.lisavollrath.com
    http://www.lisavollrath.com/feed/

    I don't know what "where the RSS is called for autodiscovery" means.

  8. Kafkaesqui

    Posted 8 years ago #

    Neither do I...

    But I notice additional categories are now appearing in your main feed. All working as hoped now?

  9. lisavollrath
    Member
    Posted 8 years ago #

    No, I added a section at the bottom to pull my ten most recent posts. It's a work around.

    Again, I would like an answer to this question:

    Are ALL my updated posts supposed to show in the feed, or just the posts that appear on my main page?

    I cannot find any documentation on exactly what to expect from the WP RSS feed.

  10. Kafkaesqui

    Posted 8 years ago #

    Your home page and main feed are handled separately. Barring some bit of custom coding or plugin, the main feed should be displaying all new posts, regardless of category.

  11. lisavollrath
    Member
    Posted 8 years ago #

    I'm not even sure how to ask the next question...

    Which file(s) should I check for the proper coding for the RSS feed, and what should I be looking for?

    I'm thinking that before I start shutting off all my plugins, it might be smart to make sure that whatever is supposed to be running things is where it's supposed to be.

  12. Kafkaesqui

    Posted 8 years ago #

    Files which may affect your feed output are:

    * wp-feed.php
    * wp-rss2.php (as well as wp-rss.php, wp-rdf.php and wp-atom.php, for the various syndication formats)
    *index.php

    These are located in the blog's root directory. One older but often used method for limiting output to a specific category is by forcing a value for the WordPress category variable:

    $cat = 1;

  13. lisavollrath
    Member
    Posted 8 years ago #

    OK, of those files, wp-feed.php and wp-rss2.php (and all the PHP files having to do with feeds) have not changed since I unzipped them and uploaded them. Just to be sure, I uploaded the original files again. No change.

    If I'm using home.php for my main page, does index.php still come into play? Or should I be checking home.php?

  14. Kafkaesqui

    Posted 8 years ago #

    A theme's index.php does still have a purpose as it provides the fallback for all other template (or rather, query) types. In any case, we've been dancing around this for a while now, but time to shut the music off and work on it directly:

    What exactly is your home.php doing to pull up these top 10 posts in the News category? Assuming it's not a state secret, being able to look over the code, as well as implement it elsewhere, should help rule it out (or not).

  15. lisavollrath
    Member
    Posted 8 years ago #

    Wait, I reworked the home.php page tonight, and changed the way I was calling the posts to display, because I didn't like that I had the content of my News posts displaying, and then below, a list of the latest posts including those in the news category. I switched to more or less this method of making one category of posts sticky, and excluding those posts from the recent links:

    MaxPower Dynamic Sticky Tutorial

    Now, even when I set the whole thing to display only a few recent posts, everything from the last month shows in the feed. Is that what's supposed to happen? Recent posts, not every post I've ever made, right? I'm still not sure exactly what's supposed to show up and what's not.

  16. Kafkaesqui

    Posted 8 years ago #

    What are your settings under Options > Reading, Syndication Feeds? This will tell you how many (latest) posts should be showing up in your main feed.

  17. lisavollrath
    Member
    Posted 8 years ago #

    OK, that helped, too. I think I finally have something I can live with. Thanks so much for all your help and patience, Kafkaesqui.

  18. pirco
    Member
    Posted 8 years ago #

    i hope someone is still reading this. because i have a similar problem: i would like my RSS feed to pull ALL stories (from ALL categories).
    i added the following line of code which does NOT do the trick...

    ">Complete RSS feed

    thanks for any help. again, what code do i add to make the RSS feed show ALL stories from ALL categories (one big long RSS feed, yes).

    thanks.

  19. pirco
    Member
    Posted 8 years ago #

    the line of code:
    <a href="feed:<?php bloginfo_rss('rss2_url'); ?>">Complete RSS feed</a>

    also, i'm using permalinks feed://www.thegeekbeat.com/feed/ which may be the problem?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags