Skip to content

Instantly share code, notes, and snippets.

@fatihacet
Created January 15, 2012 01:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatihacet/1613842 to your computer and use it in GitHub Desktop.
Save fatihacet/1613842 to your computer and use it in GitHub Desktop.
Get WordPress feeds xml by jQuery Ajax request.
$.ajax({
type: 'GET',
dataType: 'xml',
url: '/feed',
success: function(xmlDocument) {
var rss = $(xmlDocument.firstChild);
console.log(rss.find('item'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment