Skip to content

News/Events Widget Example

Ensure that if using ONLY a news widget you keep the <br> tag at the top as that ensures correct display and positioning of the widget.

If you require more display options for your RSS feeds, including amount of posts shown, show/hiding the description please refer to the webguide. If you can't find what you're wanting there talk to us as we may need to implement rss2html.

Event feeds are somewhat special. They have extra ical data embedded that allow us to display the start date of the event rather than the publish date of the post. Currently there is no support for doing this with a WordPress (Blog) feed, however, the patterns below provide options to get around this.

To include the RSS feed within the content zone of your webpage instead of the widget zone, please see the RSS feed page in pattern library.

Code (Uni News/Events RSS)

<br>
<!--WFINC="rss2html2(num_items=4;title=Latest News;url=file:///apps/web_docs/adeluweb/rss/news_news-v2.0.rdf;template_file=/apps/webteam/templates/news.tmpl.html)"-->
<!--WFINC="rss2html2(num_items=4;title=Events;type=event;url=file:///apps/web_docs/adeluweb/rss/news_event_upcoming-v2.0.rdf)"-->

Code (Blogs RSS)

If you want to feed in a specific category/tag please change the URL in the below code so that instead of /blogname/feed/ you have:

/blogname/category/categoryname/feed/
or
/blogname/tag/tagword/feed/

Please note: The Blogs RSS for events currently does not support the display of the event date in the icon, therefore it is recommended you include the event date in the blog post title if you are using your blog for feeding events into your website and use one of the following patterns depending on your display needs.

Blog RSS Feed with Icons (News and Events)

The below RSS code if for both News and Event items and will show the calendar icon with date published. You can just copy the News code or the Events code here if you only want one. Please ensure you keep the <br> at the top though.

<br>
<!--WFINC="rss2html2(num_items=4;title=Latest News;url=https://blogs.adelaide.edu.au/blogname/feed/;template_file=/apps/webteam/templates/news.tmpl.html)"-->
<!--WFINC="rss2html2(num_items=4;title=Events;type=event;url=https://blogs.adelaide.edu.au/blogname/feed/;template_file=/apps/webteam/templates/events.tmpl.html)"-->

Events Blog RSS without Icon

The calender icon is not included with this particular pattern so that the post title is the only thing they see. The published date is omitted in this pattern.

<div class="ui-pod ui-pod-extra omega">
<!--WFINC="rss2html2(num_items=3;title=Events;url=http://blogs.adelaide.edu.au/blogname/feed/;len_item_descr=0;hide_date=1;template=rss-basic.html.tt)"-->
</div>

 


 

Web Team

Call us: For urgent requests or to speak with someone directly,
please contact one of our team members.
 
Still not sure how to do something? Submit an online enquiry.