Available attachments are listed from your Media Library. If you need to upload a new attachment, please close this dialog and use the available Add to Media Library button.

Select/deselect an attachment by clicking its thumbnail. When you're done managing your attachments, click Apply

Apply

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 ); // ================ // = IMAGES FIRST = // ================ echo '
'; echo '

Images

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

Videos

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

Documents

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

Audio

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

Apply