Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a way to pull content from a wordpress database? More specifically, a gallery?

Any data that's exposed via REST API (RSS also works) can be used in your app.

http://docs.appery.io/documentation/r...

Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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.

Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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

Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a way to pull content from a wordpress database? More specifically, a gallery?

Yes, when you click on a post, save its id, then invoke the service that load the data for the post.

Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Is there a way to pull content from a wordpress database? More specifically, a gallery?

It would be the same page, the content would change based on id you pass (the item you clicked on)

Nate
Posts: 0
Joined: Sat Nov 16, 2013 1:23 am

Is there a way to pull content from a wordpress database? More specifically, a gallery?

Ok, so what are the steps to "saving it's id"?

Return to “Issues”