[display-posts post_status="private" author="current"]
-
Hi Bill,
thank you for the great plugin. π
I have a problem with this kind of shortcode: [display-posts post_status=”private” author=”current”].
Everything works fine if the user’s role is Admin or Editor, but it doesn’t if it is another. In my website a Subscriber can post private post from the front-end, resulting as author of it, and I’m trying to show in page a list of his private posts.
Trying to understand where I was wrong, I made some attempts.
1) I’ve put post_status=”private,public” and noticed that only public posts are shown.
2) I’ve included in the shortcode the parameter ‘no_posts_message’ and noticed that it doesn’t appear. So, I guess something is returned by the wp_query but not shown.I’m not sure that the problem concerns your plugin. If not, just tell me.
Thank you for the help!
The topic ‘[display-posts post_status="private" author="current"]’ is closed to new replies.