Ionic get post fron wordpress


#1

Hi guys!
Anybody know, how can i get the post from wordpress? My idea is make a list of posts from worpress (as backend).
Thx for everything!!!


#2

I would start here http://wp-api.org/ to get a REST API integrated and then use $http or ngResource


#3

Hi rojasa19. I am making an app with wordpress. I use this plugin to get a rest api https://wordpress.org/plugins/json-api/
I want to post the code in github when I finished my app. If you want I can clean a little bit my code and send it to you.


#4

Hi @martostef,
Thx so much for your answord.
I could do it, but now i have a problem with the post.content.
Im using ng-bind-html but it is not work. Do you have the same problem ? (Ill be apreciate so much you help with this problem).


#5

Here’s how I use it:

data-ng-bind-html=“articulo.content”

You don’t have to use {{ }}


#6

Thx so much again!
I tryed it and i recived the same error:
"Error: [$sanitize:badparse] <!–
wpa2a.script_load();

"

#7

i like work ionic with wordpress too
can you send me this code?
thank you


#8

Hi @blackwhite!
I don´t have this code now, bue i recomend u https://docs.angularjs.org/api/ngResource/service/$resource
if you have any question, let me know!

Regards!


#9

Hi rojasa,
i think you have code for that.
I don’t know about code :frowning:


#10

https://www.npmjs.com/package/wp-api-angularjs

This is what you need