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 6571977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:56:57+00:00 2026-05-25T14:56:57+00:00

I need to display 2 different feeds rss with WordPress. I’m using this code:

  • 0

I need to display 2 different feeds rss with WordPress. I’m using this code:

$feed = fetch_feed(array('http://somewhere.rss', 'http://anotherplace.rss'));

// Loop the results
foreach($feed->get_items() as $item) {
    echo $item->get_title();
}

it works fine but the problem is how to separate the sources. It returns a big list with 2 sources data joined. How can I know what are the data from the first url and the second? The API on WordPress’ website is not clear about that.

Any idea?

Thanks

Randomize

  • 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-25T14:56:58+00:00Added an answer on May 25, 2026 at 2:56 pm

    According to the WordPress Codex documentation, the fetch_feed function uses SimplePie. When you iterate over the items, each item is an instance of SimplePie_Item. So you should be able to use the get_feed method, such as:

    $feed = fetch_feed(array('http://somewhere.rss', 'http://anotherplace.rss'));
    
    // Loop the results
    foreach($feed->get_items() as $item) {
        echo $item->get_title() . ' posted to ' . $item->get_feed()->get_title();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, I am in a situation, where I need to display a different view
I need to display dates in a couple different ways in an app built
I need to display a single list, ordered by date which contains different types
I need to create interface MultiLingual, that allows to display object's data in different
I have a page/gsp that displays 3 different classes. This means that I need
I'm using Views for some nodes, and I want to display a different View
In my application I need to display a list of records returned by different
My JSP pages need to display different information depending on which environment they're in
I have a chart where I need to display a different bar for each
Using VB6 My Default Software display setting as 800 x 600 Clients having different

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.