Hi there, I have added a Gallery to user profiles, and Im using a front end form to allow each user to update it. In the gallery option I have ‘Library’ set to ‘Uploaded to Post’.
When I log in as a user and edit the profile, I am able to see other users uploaded images in the media library, but I only want to be able to see images for the logged in user. How would I go about setting that up?
Great, thanks for that, will looking to the pre_get_posts filter.