Jump to content


RSS Feed

  • Please log in to reply
3 replies to this topic

#1 zonetrap

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 06 June 2006 - 07:24 PM

I am working on some RSS feeds for my Wordpress website.
I was able to get one feed in with this code:

$feedUrl = "http://www.pokernews...news/rss.xml#";
$maxItemsPerFeed = '99';
$showDetails = true;
$cacheName = "pokernews";
$tLimit = -1;
$dLimit = 10;
$noHTML = true;
$showTime = false;
$feedStyle = false;
$noTitle = true;
$showTimeGMT = true;
$titleImages = false;
$multiSiteTitle = false;
$makeRSS = false;

$feedOut = getSomeFeed($feedUrl, $maxItemsPerFeed, $showDetails,
$cacheName, $filterCat, $tLimit, $dLimit, $noHTML, $showTime,
$feedStyle, $noTitle, $showTimeGMT, $titleImages, $multiSiteTitle,
$makeRSS, $rssLink);

if ($feedOut)
echo $feedOut;

Is there a way to filter on a certain title. For example, if I know there will be a daily article titled "Hand Discussion", is there a way to just bring those articles in?

#2 Buyocat

  • Members
  • PipPipPip
  • Advanced Member
  • 267 posts

Posted 06 June 2006 - 09:28 PM

First, doesn't Wordpress have RSS out of the box? My experience with it suggests that it does. However if m you're trying to make a custom feed for whatever purpose then I think you need to make your question a little clearer. If by filter you mean recognize a specific string and then trigger the feed to be made then I would suggest something like this (to be executed upon submitting the article):
if (eregi($special_case, $article_title))
// make a rss feed or whatever
// down here you'll add the article to the DB
If you meant something else please be a more specific so we can help you.
Looking for some easy-to-use tools?  Try these, https://sourceforge....jects/utils-php -- I made them myself.  They're distinct tools which are easy to understand and use.  See some examples uses at http://www.anotherearlymorning.com

#3 zonetrap

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 07 June 2006 - 02:40 AM

You are correct, Buyocat, I needed to make it clearer.

I am pulling in a feed from another site, not altering the Wordpress feed of my posts.

The code I published before, is the feed Im getting from pokernews. If pokernews had a daily article titled, "Hand Discussion", how would I go about feeding that article only to my site? How can I limit which titles are fed to my site?

#4 zonetrap

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 07 June 2006 - 02:58 PM


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users