SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation

Search

You can find the results of your search below. If you didn't find what you were looking for, you can create or edit the page named after your query with the appropriate button.

Results


Sorting by custom criteria instead of date: 10 Hits
instead of date ====== Sometimes you may want to sort items by custom criteria other than the time/date. In the following example, we're going to sort the Digg feed by the number of diggs instead of by ... the [[reference:SimplePie:sort_items]] method to sort by number of diggs. <code php> <?php // Include
Limit the number of items per feed to be used with Multifeeds: 9 Hits
how to merge only the first 5 items per feed, and sort those by date and time. There are a few things t... * All feed items MUST have dates or else PHP will sort them to the top. :!: **If you're merging multipl... to all have dates for the items or else PHP will sort them to the top.** This tutorial assumes that you... e some memory. unset($feed); } // We need to sort the items by date with a user-defined sorting fun
sort_items(): 8 Hits
==== ==== a ==== A reference to the first item to sort. ==== b ==== A reference to the second item to sort. ===== Examples ===== ==== Sort items by number of characters in the title, shortest first ====
Jaiku RSS: 5 Hits
by date, check if all items have a date, and then sort it if ($this->order_by_date) { if (!iss
merge_items(): 4 Hits
to all have dates for the items or else PHP will sort them to the top.** ===== Availability ===== * ... eeds_by_time_and_date#if_feeds_require_separate_per-feed_settings|Sort multiple feeds by time and date]]
Sort multiple feeds by time and date: 3 Hits
====== Sort multiple feeds by time and date ====== In SimplePie 1.0, we simplified the process of mergin... * All feed items MUST have dates or else PHP will sort them to the top. :!: **If you're merging multipl... to all have dates for the items or else PHP will sort them to the top.** This tutorial assumes that yo
Getting Started: 3 Hits
s allows you to merge multiple feeds together and sort the items by time and date. Using Multifeeds is a... , g:i a' )); ?> </code> Now, notice that I said "sort the items by time and date." So, what happens if a feed is missing a time/date-stamp? They won't sort. (Duh.) Sorting by date requires ALL individual i
Tips, Tricks, Tutorials, and Screencasts: 2 Hits
lass]] ===== Multiple Feeds ===== * [[tutorial:Sort multiple feeds by time and date]] * [[tutorial:
Grab custom tags or attributes: 2 Hits
nd this date data, but we'll reformat it and then sort the items chronologically based on it. We'll use... et's turn this off because we're just going to re-sort anyways, and there's no reason to waste CPU doing
Can SimplePie generate new feeds?: 1 Hits
====== Can SimplePie generate new feeds? ====== Sort of. Is there a way to hack together a new feed fro
SimplePie Core: 1 Hits
mplePie is not available, you should display some sort of error message instructing people to download,
This demo shows how to use SimplePie and a flat file database to display previous feed items like Google Reader: 1 Hits
nset($savedItems[$key]); } } /* sort items in reverse chronological order */ function
SimplePie Beta 3 "Lemon Meringue": 1 Hits
datestamp or the datestamp is not understood now sort by newest to oldest. * Problems with self-closi
SimplePie: 1 Hits