The requirement is that the user will post a blog on wordpress panel and it will post on wordpress blog section and on a static website(example.com) too. I am using pure java script and bootstrap.

New contributor
Umair is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

I think that you should have a look at the WordPress API. https://developer.wordpress.org/rest-api/reference/posts/#example-request

It allows you to fetch all posts with Javascript or any other language.


    type: 'GET',
    url: "http://example.com/wp-json/wp/v2/posts",
    success: function(data) {
        var obj = JSON.stringify(data);
        var result = jQuery.parseJSON(obj);

Your Answer

Umair is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.