• Resolved dk1204

    (@dk1204)


    Hi, I have an upload plugin on my site where users log in and then upload photos. I would like to be able to create a feature whereby visitors to the site can click on a link (to a specific author) and have all of the images tha have been uploaded by that particular author.

    I have looked around and the only way seems to be playing around with The Loop.

    I have seen in an old post someone suggesting this code to do something similar to what I’m after:

    $query = new WP_Query( array(‘author’=> $your_author_id, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’,));

    The problem is I have no idea where this code would go. I use Tempera theme. Any advice or another way around the problem would be most appreciated.

    Thanks,
    Scott

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Displaying images uploaded by specific authors’ is closed to new replies.