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

  • Home
  • SEARCH
  • 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 938405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:38:19+00:00 2026-05-15T21:38:19+00:00

Hay, i’m trying to parse an RSS feed from a wordpress blog. So far

  • 0

Hay, i’m trying to parse an RSS feed from a wordpress blog. So far everything is working as expected, here’s my code

<?php
    $feedUrl = "FEED URL"; 
    $rawFeed = file_get_contents($feedUrl); 
    $xml = new SimpleXmlElement($rawFeed);
    $channel = $xml->channel;
    $items = $channel->item;
    foreach($items as $item){
        echo "<a href='".$item->link."'>".$item->title."</a>";
        echo $item->description;
        echo $item->pubDate;

    }       

?>

However, i seem to be having issues getting the Author of the post. The data has got to be somewhere because when Safari renders the feed the author appears.

Here is my RSS feed

SimpleXMLElement Object
(
[@attributes] => Array
    (
        [version] => 2.0
    )

[channel] => SimpleXMLElement Object
    (
        [title] => My Blog title
        [link] => http://blog.com/new/blog
        [description] => Just another WordPress site
        [lastBuildDate] => Thu, 22 Jul 2010 08:02:19 +0000
        [language] => en
        [generator] => http://wordpress.org/?v=3.0
        [item] => Array
            (
                [0] => SimpleXMLElement Object
                    (
                        [title] => Second post
                        [link] => http://blog.com/new/blog/?p=5
                        [comments] => http://blog.com/new/blog/?p=5#comments
                        [pubDate] => Thu, 22 Jul 2010 08:02:19 +0000
                        [category] => SimpleXMLElement Object
                            (
                            )

                        [guid] => http://blog.com/new/blog/?p=5
                        [description] => SimpleXMLElement Object
                            (
                            )

                    )

                [1] => SimpleXMLElement Object
                    (
                        [title] => Hello world!
                        [link] => http://blogl.com/new/blog/?p=1
                        [comments] => http://blog.com/new/blog/?p=1#comments
                        [pubDate] => Thu, 22 Jul 2010 07:22:40 +0000
                        [category] => SimpleXMLElement Object
                            (
                            )

                        [guid] => http://blog.com/new/blog/?p=1
                        [description] => SimpleXMLElement Object
                            (
                            )

                    )

            )

    )

)

any help would be awesome!

Thanks

  • 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-15T21:38:20+00:00Added an answer on May 15, 2026 at 9:38 pm

    In a WordPress RSS feed, the author info is in the <dc:creator> tag. Check out whether that applies to your feed as well.

    The XML parser swallows the tag because of the colon in the tag name.

    See this question for how to get those tags to display as well.

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

Sidebar

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.