Get questions on external site

4.05K viewsThemesexternal

Is there a way to pull the top 5 questions onto an external website?




I would love this as well

You can use WP-Rest API plugin.

Any one done it with Wp-Rest API? any example code, or we could share examples here


Yes it can be easily done. You have to create a page which output contents as JSON and then you can call this page in your site and parse JSON to PHP object.

You can add a security key check if you don’t want other to access to that page.

Believe me its too simple to achieve this.

If you want want codes, then you have to wait bit busy with 2.3. Remind me later and I will provide the code.

I will look into this. Thank you for your help.