Embedding word press post in my .com site
-
i have a website swsfspl.com and word press site as swsfspl.blog . I want that recent word press post should get visited in my .com site (without redirecting to word press and to be readable with all features of word press GUI ) So swsfspl.blog will be in backend but user will get feeling of reading it on swsfspl.com site. Is this possible ?
The blog I need help with is: (visible only to logged in users)
-
Hey there!
WordPress.com sites have a public REST API you can use to pull posts directly into your
.comsite. You’d fetch posts from your blog and render them on your own domain with your own design.The endpoint looks like this:
https://public-api.wordpress.com/rest/v1.1/sites/swsfspl.blog/posts/This returns your posts as JSON; titles, content, images, dates, categories, everything. You then display them on
swsfspl.comhowever you like using whatever tech your site runs on (plain HTML/JS, React, PHP, etc.).If you need more help, just ask!
– Ervin