I tested this and it’s working on my end. The parameter author=”this” should display posts or other post types whose author is the current logged-in user.
Hmm, I wonder what is different in your situation. Can you try this before the loop:
[user id]
Then, you can see if the user ID is the same as the author ID of the posts you need.
[loop type="post]
[field title] - [field author-id]
[/loop]
Thread Starter
Jissac
(@jissac)
Thank you very much, Eliot!
The plugin is great. You are right , but how can I display posts or other post types whose author is the current author id of that page but not the logged-in user?
Aah, I see. OK, I added a parameter in the latest plugin update to simplify this.
[loop type="post" author="same"]
[field title]
[/loop]
This will show posts by the same author as current post. If you don’t want the current post itself in the loop, you can exclude it:
[loop type="post" author="same" exclude="this"]