HELLO developers!
I want to fetch users from WordPress so that I can get not just author ID, but the author’s name.
I added basic auth as following in frontity.settings.js file:
"name": "@frontity/wp-source",
"state": {
"source": {
"api": "https://test.com/wp-json/",
"url": "https://test.com",
"auth":"Basic 16digittestcodewithoutspaces",
"postsPage": "/blog"
}
}
However, it is not getting users.
Please help!
This is what I get in frontity.state.source
. In the tutorial, it shows as people should get author’s name and details here. However, I get undefined
.