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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:26:13+00:00 2026-05-29T21:26:13+00:00

I am building my first site in wordpress. I want to get the data

  • 0

I am building my first site in wordpress. I want to get the data from here, the Events in the Holme Valley South Ward – RSS.

First of all, I am unsure whether to use the XML or the RSS link, I thought RSS was XML. I have managed to get the RSS one to work though and not the XML one.

Secondly, the RSS feed is only displaying links to the items, I want to get all the data that is displayed when one clicks the RSS link or pastes it into a browser.

Lastly, is there any way to give them unique ids or classes even in the html without manually doing it using jquery?

If it helps, here is a link to my wordpress page where the feed is only generating links. The code I am using to generate the RSS feed is:

<?php
include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
$feed = fetch_rss('http://www.kirklees.gov.uk/Rss/KMCrss.asmx/events_by_ward?ward_name=Holme+Valley+South'); // specify feed url
$items = array_slice($feed->items, 0, 7); // specify first and last item
?>

<?php if (!empty($items)) : ?>
<?php foreach ($items as $item) : ?>

<h2><a href="<?php echo $item['link']; ?>"><?php echo $item['title']; ?></a></h2>
<p><?php echo $item['description']; ?></p>

<?php endforeach; ?>
<?php endif; ?>
  • 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-29T21:26:15+00:00Added an answer on May 29, 2026 at 9:26 pm

    Sorted it out. I used some different php code to display it and it displays it all fine now. For anyone who wants to display items from RSS feed on wordpress, you can use this:

        <?php if(function_exists('fetch_feed')) {
    
        include_once(ABSPATH . WPINC . '/feed.php');  // include the required file
        $feed = fetch_feed('path/to/your/feed'); // specify the source feed
    
        $limit = $feed->get_item_quantity(7); // specify number of items
        $items = $feed->get_items(0, $limit); // create an array of items
    
    }
    
        if ($limit == 0) echo 'The feed is either empty or unavailable.';
        else foreach ($items as $item) : ?>
    
    
        <ul>
        <li class="title"> <?php echo $item->get_title(); ?> </li>
        <li class="date"><?php echo $item->get_date('j F Y @ g:i a'); ?></li>
        <li><?php echo($item->get_description()); ?> </li>
        <li> <a href="<?php echo $item->get_permalink(); ?>">Find out More</a></li>
        </ul>   
    
    
        <?php endforeach; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building out my first WordPress site for a client. I really want
I'm building a site (my first!) which lists events, nested when necessary inside year
I'm building my first N2 site, mostly by copying bits and pieces from the
I'm very new to MVC, and just building my first site, using NerdDinner as
I have been working on building my first CSS site using divs and am
I'm building my first MVC3 website and have connected my site to a mdf
We're building a very content rich site in Drupal. It's my first time working
So I'm building my first ever website with user accounts. What data should I
I'm building an ASP.NET MVC site where I want to implement jQuery AJAX calls
I'm building my first site based on backbone.js and I have a bit of

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.