-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post Author Invalid #52
Comments
I'm finding similar behavior. Posts show with an incorrect author. The most recent post appears to be correct, not sure if it's merely by chance or what, but the rest of them are incorrect. Edit: I think I see why this is happening. In your fetchUser method, which is called by the _postBuilder method in the fetchPosts method, you are using the search api endpoint and it is often finding multiple users (if I search for id# 7, I find user with the id=7 and myself, which has a 7 in the username) but only returning the first result, which is often the incorrect result. A better method would be to query the users endpoint (/wp/v2/users/) instead.
|
I just followed the tutorial, using my own WordPress site url. But some of the post author is invalid. The author name that appears instead is another author on my site
The text was updated successfully, but these errors were encountered: