Fetch RSS from wordpress to a php site
-
Hello everyone!
I would like to know if there is a way to fetch the RSS feed from a category of my wordpress site to a php site!I’d appreciate any kind of help!
-
Hi, I’m not sure at all about this either…I want to add my blog to the RSS of myyahoo.com….when I type in the address of my blog it says “type in a valid URL”???
-
@daughterdiary
All wordpress.com blogs have feeds for both entries and comments built in. These are your feeds for the wordpress.com blog linked to your username:
Entries/Posts – http://daughterdiary.wordpress.com/feed/
Comments – http://daughterdiary.wordpress.com/comments/feed/ -
You might take a look at this link.
http://www.webpronews.com/expertarticles/2006/10/09/rss-feeds-adding-a-feed-to-a-website-using-php
-
-
This is the format for a category feed on WordPress.com blogs:
http://NAME_OF_BLOG.wordpress.com/category/categoryname/feed/
[Note from support: removed the single quotes from the link above.]
-
Remove the backtick ` at the beginning and end of the code I posted above. I didn’t expect them to display. :(
-
-
@iliana83 Just add ‘feed’ to the end of any category URL like this:
http://axestaticprocess.wordpress.com/category/guitar-gear/feed/
-
thank you.
But my question was if anyone knows the PHP code to bring the RSS feed from a wordpress site to a PHP site.
-
Here at wordpress.com we cannot even access the template files that contain the PHP and HTML for our blogs. If the link that TSP provided was not what you needed then perhaps you ought to be posting to http://wordpress.org/support/
-
-
@illian83, did you read the link I gave earlier? It is exactly what you are looking for. I’ve used the code in that link and had it work just fine on several sites I’ve set up for people. Here’s the link again.
http://www.webpronews.com/expertarticles/2006/10/09/rss-feeds-adding-a-feed-to-a-website-using-php
If you do not know anything about PHP, then perhaps you should get someone’s help with it since the code is basic and does require a little bit of editing. Also, if you want to style the output of the code, it will take adding some CSS stuff to the PHP code and also to the site’s code.
-
@thesacredpath, I did but it didn’t work :(
I tested it on a hurry so perhaps I did something wrong.I do know a few things about PHP :)
thank you so much for your help, I appreciate it!
- The topic ‘Fetch RSS from wordpress to a php site’ is closed to new replies.