# How to connect Angular with WordPress?

**URL:** <https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464>\
**Category:** uncategorized\
**Created:** [May 6, 2015, 4:52am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464 "2015-05-06T04:52:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [May 6, 2015, 4:53am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/1 "2015-05-06T04:53:00Z")

</div>

I have a mobile app that I am constructing with Ionic Framework, I’ve been researching trough the web trying to get any tutorial which give me the answer to my question: how can I connect my app with WordPress?

all I see is questions [like this](http://stackoverflow.com/questions/28703995/how-to-integrate-angularjs-view-with-wordpress)

I don’t want/need to touch anything in the WordPress part, unless I need any plugin or something, all I need is to display the posts of WordPress account in my mobile app main view, so, is there any tutorial you can show me which goes straight to the point? do you have any example?

My app is running with Angular, so I need to do everything with it.

I saw [this tutorial](https://www.youtube.com/watch?v=sCnGSOaaZFo) but he is doing it with something named Freshly-Pressed, how can I do it but with my own WP ?

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [May 6, 2015, 5:52am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/2 "2015-05-06T05:52:07Z")

</div>

you need to extend your wordpress to get an API.

> **[JSON API](https://wordpress.org/plugins/json-api/)**
>
> A RESTful API for WordPress

---

<div class="post-metadata">

**Author:** ![Maketroli](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/maketroli/32/72294_2.png) [@Maketroli](https://forum.ionicframework.com/u/Maketroli)\
**Post date:** [May 6, 2015, 6:08pm UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/3 "2015-05-06T18:08:20Z")

</div>

would be awesome if you provide a guide or example on how to post on your mobile app the posts you made in WP

---

<div class="post-metadata">

**Author:** ![bengtler](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/bengtler/32/98565_2.png) [@bengtler](https://forum.ionicframework.com/u/bengtler)\
**Post date:** [May 7, 2015, 5:44am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/4 "2015-05-07T05:44:10Z")

</div>

Read the documentation:

> **[JSON API](https://wordpress.org/plugins/json-api/#other_notes)**
>
> A RESTful API for WordPress

find the correct api-action like get\_posts and use it 😉

---

<div class="post-metadata">

**Author:** ![amitmourya](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@amitmourya](https://forum.ionicframework.com/u/amitmourya)\
**Post date:** [May 7, 2015, 6:01am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/5 "2015-05-07T06:01:37Z")

</div>

Hi @Maketroli,  
Use WP-API ([https://wordpress.org/plugins/json-rest-api/](https://wordpress.org/plugins/json-rest-api/)) plugin in wordpress.  
API Usage document is available at [http://wp-api.org/](http://wp-api.org/)

---

<div class="post-metadata">

**Author:** ![scottb](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/scottb/32/67671_2.png) [@scottb](https://forum.ionicframework.com/u/scottb)\
**Post date:** [June 24, 2015, 12:44am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/6 "2015-06-24T00:44:11Z")

</div>

You’ll definitely want to use the WP-API, along with an ajax call inside of a controller or service. I made a tutorial here that has some sample code: [http://reactor.apppresser.com/blog/wordpress-api-ionic-app/](http://reactor.apppresser.com/blog/wordpress-api-ionic-app/)

---

<div class="post-metadata">

**Author:** ![wolf78](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/wolf78/32/103172_2.png) [@wolf78](https://forum.ionicframework.com/u/wolf78)\
**Post date:** [September 19, 2016, 1:51am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/7 "2016-09-19T01:51:53Z")

</div>

This guy’s is just trying to sell you on reactor, there is a few choices that require elbow grease research and a little know how. Just Google and have fun, if you want a paid solution with limited build choices reactor is not bad at all, and quick and easy, it’s all about how far in it your looking to get, personally I feel reactor is good for people who just wanna get it out there quick and not really care about the over all look and feel, just a cookie cutter solution.

---

<div class="post-metadata">

**Author:** ![jhonalbert48](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jhonalbert48/32/140873_2.png) [@jhonalbert48](https://forum.ionicframework.com/u/jhonalbert48)\
**Post date:** [February 21, 2022, 7:06am UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/8 "2022-02-21T07:06:32Z")

</div>

For the integration of Angular into the headless WordPress, there are two ways.  
The first is by the installation of WordPress directly in the Angular application.  
The second one is installing WordPress outside of the application and then integration via an Application Programming Interface or API.

---

<div class="post-metadata">

**Author:** ![Windzoon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/windzoon/32/142459_2.png) [@Windzoon](https://forum.ionicframework.com/u/Windzoon)\
**Post date:** [September 8, 2022, 4:38pm UTC](https://forum.ionicframework.com/t/how-to-connect-angular-with-wordpress/22464/9 "2022-09-08T16:38:16Z")

</div>

Hello @Maketroli,

I would indeed agree with @jhonalbert48.

But, it can be more helpful if you focus on the second method - installing WordPress outside of the application and then integration via an Application Programming Interface or API.

With this method your headless WordPress website will be ready. And to follow this method, you have to buy the REST API plugin to extract all the JSON data.

Hope my answer will add value to your question!

Thanks!
