Same question I have, but for following loop that is to list links to posts of currently logged in user…
<ul>
[loop author=""]
<li>
[field title-link]
</li>
[/loop]
</ul>
Does not seem to work, so I would welcome the correct way to do this.
thanks in advance.
I’m also looking for a way to do this.
author and author-id don’t seem to work
Hello, sorry for the late reply..!
Thank you for the suggestion – I was surprised this parameter didn’t exist yet. In the latest update, you can filter the loop by author ID or login name, just how you described with the author parameter. You can also set multiple values. For details, please see the documentation under Settings -> Custom Content -> Loop.
Thread Starter
Chie F
(@thetarbre)
Thank you so much for the update! I ve already tried the new version and it works perfect!
Yes your plugin had had functions for user related, but this one was not there so I was wondering why. I am so grateful to you for such an exemplary good plugin and its development. Thank you!
Great, I’m glad it worked smoothly. どうも!
Hello,
The following code enlists all articles by ALL authors, while I thought it would just render the articles by the current logged in user only? Am I doing something wrong?
<ul>
[loop author=""]
<li>
[field title-link] by [content field="author" meta="display_name"]
</li>
[/loop]
</ul>
Hello,
Oops, I didn’t see the part about current user. In the latest update, you can set author=”this” to display posts from the current user:
[loop author="this" list="true"]
[field title-link] by [field author meta="display_name"]
[/loop]
This does not work as it still lists all articles by all authors, so not the current user only.
Hmm, are you using the latest version 1.4.8?
Just did the upgrade, works as a charm as well. Thanks for the quick solution!
Ahh, that’s good to hear. I’m glad that did it. 🙂