I am planning to create a “Photography” page in my wordpress site. In that page, there will be a list of the photographers (maybe create a user group called ‘photographers’) and display the images they have uploaded, next or under their avatar. The list of the images uploaded has to be updated automatically when they upload a new one.
Since i am new to wordpress, i am looking for any ideas that would point me to the right direction implementing the function described above.
Thanks in advance.
This example loops through all photographers and then displays all images uploaded by them:
It uses the get_users function to get all users that have the photographer role assigned to them. Next a new query is generated based on each photographers ID that gets all attachments.