Timeline for Get all media files for current author
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2013 at 19:08 | comment | added | vancoder | Cool. Note it should be 'inherit', though. | |
Mar 26, 2013 at 19:07 | vote | accept | Eckstein | ||
Mar 26, 2013 at 19:07 | comment | added | Eckstein |
Ooooh, duh. That makes sense. Ended up with this, which works beautifully: if (is_user_logged_in()) { $user_id = get_current_user_id(); $the_query = new WP_Query( array( 'post_type' => 'attachment', 'post_status' => 'inheret', 'author' => $user_id) ); if ( $the_query->have_posts() ) while ( $the_query->have_posts() ) : $the_query->the_post(); etc etc etc
|
|
Mar 26, 2013 at 18:38 | history | answered | vancoder | CC BY-SA 3.0 |