I have an RSS feed that is called using javascript. What I would like to happen is that the information gets displayed as html when you view source instead of the javascript.

Here's the javascript:

<script type="text/javascript" onload="$('div.rssBody').vTicker();">
$(document).ready(function () {
	$('#ticker1').rssfeed('http://feeds.bbc.co.uk/iplayer/highlights/tv',{}, function(e) {


<div id="ticker1"></div>

I'm guessing there is some php function that will be able to extract the info from this the source before the javascript gets to it.

Any help greatly recieved. Thank you

6 Years
Discussion Span
Last Post by cambraydesign

Right ok, I have a parser now and I'm using wordpress. The parser uses shortcodes so I now need to integrate the shortcode into the javascript.

The javascript code is the same as above and needs to have this short code in it:

[parse_feed feed="http://feeds.bbc.co.uk/iplayer/highlights/tv" num="8" ]

I have tried this:

<script type="text/javascript">
$(document).ready(function () {
	$('#ticker1').rssfeed(<?php echo do_shortcode('[parse_feed feed="http://feeds.bbc.co.uk/iplayer/highlights/tv" num="8" ]'); ?>,{}, function(e) {

But this isn't working!

Thanks for any help anyone can give. Thanks for the parser suggestion too!!


This plugin only gets the title from the feed whereas the other feed get the date and the first part of text in each feed article. But that is what I'm trying to achieve!! Thanks for your help!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.