I'm looking for a way to pull data from a wordpress site. I've been messing around with an RSS feed, but that doesn't seem to work very well.
Any help would be great!
I'm looking for a way to pull data from a wordpress site. I've been messing around with an RSS feed, but that doesn't seem to work very well.
Any help would be great!
Any data that's exposed via REST API (RSS also works) can be used in your app.
Thanks, that's helpful. I have to do a little more digging because the content I want to display is in a page, not a post. So, I have to figure out how to add a feed to it.
There is an option to enable API in Wordpress. I'm not familiar with it but there might be an option to get page content via it.
Thanks Max. I found a plugin called JSON that works really well for narrowing down specific posts and pages. Thanks again for your help!
Nate
Ok, so I have been able to pull some data from "posts" and I have a page that lists all posts, but I would like to be able to click on one to bring up a new page with that post's data. Does that make sense?
Yes, when you click on a post, save its id, then invoke the service that load the data for the post.
Ok, but I don't want to have to create a new page for every post being called. I want it to update automatically. For instance, I have a page right now that lists all the posts: "get_recent_posts&post_type=portfolio" at the end of the URL. I want to be able to click on one of the posts and have it pull up a page that has the title, image, and content of the post, but not having to create a page everytime for every post. Thanks for your help.
It would be the same page, the content would change based on id you pass (the item you clicked on)
Ok, so what are the steps to "saving it's id"?