WordPress.org

Ready to get started?Download WordPress

Forums

how to get wordpress feed link to work? (3 posts)

  1. valarcher
    Member
    Posted 4 years ago #

    Hi - I first did a search in these forums and I read /codex.wordpress.org/Customizing_Feeds but am unable to find answer.

    I added the 2 wordpress feed links on my site, namely:

    for entries: ">

    for comments: ">

    but then, when I click on the first entries link, I get this displayed at: http://localhost/1gs/feed (1gs is my wordpress-root folder):

    ----------
    GoGreen: Eat Raw Food! [my blogtitle]
    Info + Goodies for Super Life [my tagline]

    This is a test [header]
    Wednesday, February 17, 2010 2:05 PM

    this is a test [body]
    ----------

    Whereas surely it should give me the post title and first few lines of post, and the date the post was published? I don't even know where that "this is a test" is coming from.

    When I click on the second comments link, I get this displayed at: http://localhost/1gs/comments/feed, with a list of feed readers depending on browser - it seems to be working correctly (displaying the last post info) though I don't have a feed reader to test it:

    ----------
    Comments for GoGreen: Eat Raw Food!
    Info + Goodies for Super Life

    Comment on Automatic Sprouter: GoGreen Sprouter Better than EasyGreen and Freshlife Sprouters by al - web-va
    Saturday, March 27, 2010 2:15 PM [this is last comment on post]

    my own test comment correctly quoted
    ----------

    QUESTIONS

    (1) How do I get the first link "> to display the correct information (title, some body text, date published) and stop it from displaying "this is a test" for both header and body, with incorrect date?

    (2) Does wordpress have php code to subscribe to a feed for each of these 4:

    - feed for new updates on this post only
    - feed for all new posts/pages/updates on entire site
    - feed for new comments on this post only
    - feed for all new comments on entire site

    All I've been able to find are the 2 above, and

    <?php comments_rss_link('link text'); ?>

    this performs the same action as: "> - that is, displays the feed page: http://localhost/1gs/feed

    thank you for your help - Val

  2. valarcher
    Member
    Posted 4 years ago #

    Hi - let me try that again, I did use the code tag at start + end of php, but it's ignoring it. I'll replace < and > with \ and /

    ----------

    I added the 2 wordpress feed links on my site, namely:

    for entries: a href="\?php bloginfo('rss2_url'); ?>"/

    for comments: a href="\?php bloginfo('comments_rss2_url'); ?>"/

    but then, when I click on the first entries link, I get this displayed at: http://localhost/1gs/feed (1gs is my wordpress-root folder):

    ----------
    GoGreen: Eat Raw Food! [my blogtitle]
    Info + Goodies for Super Life [my tagline]

    This is a test [header]
    Wednesday, February 17, 2010 2:05 PM

    this is a test [body]
    ----------

    Whereas surely it should give me the post title and first few lines of post, and the date the post was published? I don't even know where that "this is a test" is coming from.

    When I click on the second comments link, I get this displayed at: http://localhost/1gs/comments/feed, with a list of feed readers depending on browser - it seems to be working correctly (displaying the last post info) though I don't have a feed reader to test it:

    ----------
    Comments for GoGreen: Eat Raw Food!
    Info + Goodies for Super Life

    Comment on Automatic Sprouter: GoGreen Sprouter Better than EasyGreen and Freshlife Sprouters by al - web-va
    Saturday, March 27, 2010 2:15 PM [this is last comment on post]

    my own test comment correctly quoted
    ----------

    QUESTIONS

    (1) How do I get the first link a href="\?php bloginfo('rss2_url'); ?>"/ to display the correct information (title, some body text, date published) and stop it from displaying "this is a test" for both header and body, with incorrect date?

    (2) Does wordpress have php code to subscribe to a feed for each of these 4:

    - feed for new updates on this post only
    - feed for all new posts/pages/updates on entire site
    - feed for new comments on this post only
    - feed for all new comments on entire site

    All I've been able to find are the 2 above, and

    \?php comments_rss_link('link text'); ?/

    this performs the same action as: \a href="<?php bloginfo('rss2_url'); ?>"/ - that is, displays the feed page: http://localhost/1gs/feed

    thank you for your help - Val

  3. Eric Amundson
    Volunteer Moderator
    Posted 4 years ago #

    Val,

    1) Sounds like it is actually pulling data from your Post and Comments, but the "This is a test" I'd imagine came from a post.

    If you don't have many posts in your database, I'd create two or three dummy posts with varying amounts of info and try again.

    2) You may find this post helpful:
    http://codex.wordpress.org/WordPress_Feeds

    I hope that helps.

    Eric

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags