questions

How to fetch wordpress post author details with react js?

Rate this post

When I try to fetch my wordpress site users like this :

https://sitename/wp-json/wp/v2/users

But it throws an error which is :

<title> 403 Forbidden
    </title>

How can I fetch my wordpress site users details ?

 

✔️Solution:

I solved the problem by adding a _embedd query to the url

Leave a Reply

Your email address will not be published.

Back to top button