Get blog post from main domain to sub domain using API Tester

Hello,

Can you please assist us to get blog posts from Main Domain to Sub Domain using API Tester. We just want to display blogs posts of the Main Domain to Sub Domain (Title, Image, Excerpt and read more link). On click, posts open to the Main Domain.

Hoping for the solution.

Thank you and best regards.

GET https://your-domain.com/wp-json/wp/v2/posts/<id> can be used to grab a post from another WordPress domain. The JSON response should have all the information you need there. That page has other REST related requests you can make for posts. Have a great day.

Hello,

Thank you for the response.

Any tutorial on this at “theme.co” from basics?

Thank you and best regards.

The Pokemon API is very similar to this. The WordPress API is just another JSON API. Setup the API Tester with the other WordPress domain and you’ll see all your looper data there.

https://www.youtube.com/watch?v=fgJSjYJaf34

External API Docs.

Hello,

Thank you for the response.

We will go through the above provided links and let you know if any further information is required.

Thank you and best regards.

1 Like

Hey @bibhashkarn,

That’s great and let us know how it goes.

Cheers!

Sure,

We are working on it and let you know as it goes.

Thank You.

Hi Bibhash,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.