• Hi all,

    Let me start by saying I use the WordPress hosted version, not the custom hosted version. I know there are many other tweaks you can do when you host it yourself but I’m hoping someone can help me with the WordPress hosted version.

    I currently have the RSS being pulled into another website I run and I want to be able to pull in one, specific article that ISN’T necessarily the newest article. IE: There are 6 articles total and I want to be able to view the 3rd article.

    I currently have it working so that I get the title, date and description of the latest article and I want to have a “View Full Article” link where I can then bring in the full article into the page (again, via an RSS feed NOT direct them to the word press page).

    Now, this works perfectly for the latest article. I just limit the amount of articles brought in to 1 and use the content:encoded tag rather then description. But what about earlier articles? I have to beleive there is a way to draw in any specific article via an RSS feed… right?

    I mean, they each have their own URL. Can’t I use the permalink number to help with this? I tried to guess the url by trying: https://htb2008.wordpress.com/feed/?p=11 but that is the comments feed… however it’s the comments feed for a specific article, which leads me to believe even more so that there has to be a way to stream a specific article.

    I’ll worry about the details of implimentation but can anyone direct me towards the URL I can use for pulling in a specific article?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter psykoral

    (@psykoral)

    Well for those interested (doesn’t seem like anyone but for search purposes humor me) I’ve found a solution/work around for getting a single article.

    I wont go as far as to post the code specifically, but what I ended up doing was this:

    – Created a function that has a parameter of ‘id’
    – Used that $id in a loop to check the “guid” node of the XML
    – If the “guid” node matched the value of $id then show it.

    That way, there will only ever be one item shown and you can do something like https://www.yoursite.com/?id=11 to get a single article with the id of 11.

    the reason nobody’s interested is that you’re on the wrong support site… this place is for the host-your-own edition.

    wordpress.com has its own support forum full of people who are interested in that.

    glad you got it working though. congratulations.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing a specific post for RSS Feed’ is closed to new replies.