Is there a way to get recent articles using JavaScript from WordPress blog? I need to show some content from the blog easy way on a static page so I think JavaScript would be fine for this.
Leave a Reply
You must be logged in to post a comment.
Is there a way to get recent articles using JavaScript from WordPress blog? I need to show some content from the blog easy way on a static page so I think JavaScript would be fine for this.
You must be logged in to post a comment.
If you are in different domain, you cannot do this with pure javascript. You will need to use serverside proxy (for example, PHP proxy – a file which will take URL, do request and return data). After you got data, just use jQuery ability to parse XML files and write your HTML.
Parse RSS with jQuery