I am displaying the following rss feed on my WordPress site (http://ecsotec.com/tasks). It currently only shows the title. I would like to also display the Priority level next to the title (e.g., task name - Priority 1), but don't know how I can extract the Priority from the item description (it's all lumped together in the content tag of the xml feed - you can look at the feed source below). All I can see is that the Priority value (e.g., 1, 2, 3) is located in the fourth span element of the content tag.
In addition, I would like to show the items for priority 1 first (<ul id="priority1>...), then priority 2 etc. so that I can assign separate css styles.
Does anybody have an idea how to drill down to that span and display the number?
Here is what I use to display the title of the feed items:
include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
UR0Pe7vzzUmFpn5RQmNNCw9JhiqyosPWe0UmqzRu8Wx*l-I2EmdGqpFHMETP3O9KWA'); // specify
$items = array_slice($feed->items, 0, 30); // specify first and last item
<?php if (!empty($items)) : ?>
<?php foreach ($items as $item) : ?>
<?php echo $item['title']; ?>
<?php endforeach; ?>
<?php endif; ?>
Thanks for looking at my question.