Page 1 of 2
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Sat Nov 16, 2013 1:23 am
by Nate
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!
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Sat Nov 16, 2013 1:41 am
by maxkatz
Any data that's exposed via REST API (RSS also works) can be used in your app.
http://docs.appery.io/documentation/r...
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Sat Nov 16, 2013 2:45 am
by Nate
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.
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Sat Nov 16, 2013 2:49 am
by maxkatz
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.
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Sat Nov 16, 2013 3:51 pm
by Nate
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
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Mon Nov 18, 2013 2:22 am
by 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?
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Mon Nov 18, 2013 2:38 am
by maxkatz
Yes, when you click on a post, save its id, then invoke the service that load the data for the post.
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Mon Nov 18, 2013 10:22 pm
by Nate
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.
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Mon Nov 18, 2013 11:12 pm
by maxkatz
It would be the same page, the content would change based on id you pass (the item you clicked on)
Is there a way to pull content from a wordpress database? More specifically, a gallery?
Posted: Tue Nov 19, 2013 1:48 am
by Nate
Ok, so what are the steps to "saving it's id"?