Thanks!
Hello! Thanks for your reply! However, when I try to use get_the_author_meta(‘ID’) it retrieves the ID of the logged-in user (that’s me!).
The thing that’s going wrong is this: I have a page ‘profile’ at /profile/. This shows the login screen when not logged-in, and my profile when I am logged-in. Also, it shows a members profile when I go to /profile/membername/. However, when I add the shortcode for ‘postsbyuser’ and go to /profile/ (therefor the login page) it shows all posts, even though it doesn’t show a user.
How can I only see the ‘postsbyuser’ on a page that shows a user?