posts WHERE post_type = 'attachment' AND post_author = " . $userdata->ID . " ORDER BY post_modified DESC"; } else { $attachments_sql = "SELECT * FROM $wpdb->posts WHERE post_type = 'attachment' ORDER BY post_modified DESC"; } $attachment_files = $wpdb->get_results( $attachments_sql ); ?>

.

'; echo '

' . __("Images", "attachments") . '

'; echo ''; echo '
'; // ========== // = VIDEOS = // ========== echo '
'; echo '

' . __("Videos", "attachments") . '

'; echo ''; echo '
'; // ============= // = DOCUMENTS = // ============= echo '
'; echo '

' . __("Documents", "attachments") . '

'; echo ''; echo '
'; // ========= // = AUDIO = // ========= echo '
'; echo '

' . __("Audio", "attachments") . '

'; echo ''; echo '
'; ?>