Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7004265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:10:36+00:00 2026-05-27T21:10:36+00:00

I am using SimplePie RSS to aggregate 4 feeds and they are being sorted

  • 0

I am using SimplePie RSS to aggregate 4 feeds and they are being sorted by the date (descending) and in the code it is set to echo out the pubDate but it is not showing it. It just prints a blank element.

For sanaties sake (as the code file is tens of lines long I have it in a *.txt file on my server which can be found here: http://feeds.powercastmedia.net/feeds.php.txt

I am completely lost.

Cheers!,
Phill

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:10:36+00:00Added an answer on May 27, 2026 at 9:10 pm

    Try placing other information in the echo calls to ensure that those lines are actually being called, and that the output is being displayed in the expected manor –

    <title><? echo "Title: ".$item->get_title(); ?></title>
    <link><? echo "Permalink: ".$item->get_permalink(); ?></link>
    <pubDate><? echo "PubDate: ".$item->get_date(); ?></pubDate>
    <description><? echo "Description: ".$item->get_description(); ?></description>
    

    This kind of “debug output” can help with debugging all sorts of things. It should help you figure out exactly where the problem is originating from.

    Also, I noticed that you have numerous unnecessary PHP opening and closing tags, where multiple lines could be consolidated into a single, cleaner code block (Ex:)

    <?php if ($success): ?>
    <? $itemlimit=0; ?>
    <?php foreach($feed->get_items() as $item): ?>
    <? if ($itemlimit==10) { break; } ?>
    

    Could be cleaned up to be:

    <?php 
    if($success)
    {
        $itemlimit = 0;
        $items = $feed->get_items(); // This might also help, as PHP sometimes has issues when iterating through arrays returned directly from functions
        foreach($items as $item)
        {
            if($itemlimit == 0) break;
    ...
    

    In fact, most of the file could be within one pair of PHP tags.
    Just a suggestion.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get simplepie to loop through a few rss feeds using codeigniter
The code below is part of an rss feed parser using WordPress's simplepie fetch_feed()...
I am working on an RSS reader using SimplePie. I want to pull in
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
Using JDeveloper , I started developing a set of web pages for a project
We have been using SimplePie on our Magento install to pull our blog posts
I just want to mix around 10 rss feeds into one and then i
I am trying to create a simple RSS parser using the two frameworks. However
So here is the main simplepie code I'm trying to use, and I don't
Using the following as an example (with $db being a previously created database connection

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.