If I am understanding the question correctly, you should be able to do a query for the media by user id. Something like the follow (untested) code:
//only do this if there is a user logged in
if( is_user_logged_in() ) {
//get the currenly logged in user
$user_ID = get_current_user_id();
$upload_args = array(
'post_type' => 'attachment',
'author' => $user_ID
);
$uploads = new WP_Query( $upload_args );
}else{
//what to do if there is no user logged in.
}
Hope it helps!
Related Posts:
- Submit post and upload image from front-end
- How to disable generation of default image sizes for some custom post types?
- How can I bulk upload images and automatically create posts for each one at the same time?
- Use a separate upload folder for custom post attachment upload
- Handling front-end file uploads, considering safety and ease of use
- Hide “Add media”, HTML editor from TinyMCE
- Get post ID from wp_insert_post()
- Create page to handle form submission
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- Set custom upload path for custom post type only?
- How to hide CPT files from media library programmatically
- Add metabox with media uploader in a custom post type [duplicate]
- Remove tabs from media uploader for a CPT
- Removing Image Sizes for Custom Post Type
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- How to save contact form 7 data in Custom Post Types (CPT) [closed]
- Image size filtering in Media uploader according to custom post type
- Conditional two level dropdown filter for custom post type
- Dynamic dropdown custom post list based on dropdown selection
- Rename the insert button in media upload window
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- How to embed form data within the ‘Add new post’
- Change upload_dir folder at a certain cpt but cant change back
- Using shortcodes to parse POST request (containing the data from a front-end form)
- Limit upload by file type only for certain custom post type
- wp is not defined error using wp.media to create a custom image uploader
- Linking three taxonomies with ACF
- Custom query form submission pagination
- Upload Image from Front End and Resize
- How to rename image at uploading on specific plugin or post-type in WordPress
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- WordPress posts with multiple fields
- How to Submit Post Via cURL & PHP
- Cannot attach media when capabilities added to custom post type
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Remove fields on media uploader for custom page type – not working for “From Computer” or “From Url” tabs?
- Duplicate Custom Header Functionality into the post edit screen
- Send email button in custom post type backend
- Force documents to appear in Featured Image dialogue
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- How to retain $_POST data when submitting form to custom page
- Post form as custom post
- WordPress 3.5 Media Uploader – Only allow 1 upload and certain file types
- Add a button or image button that calls wp functions in the wp-admin
- How to Create an Image Upload Box for Custom Posts?
- How to get the upcoming post ID from front end?
- Custom Post Type Video – Online/Offline
- Form action/link to render a plugin in WordPress front-end
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- A form that can save/edit after first input
- How to update post meta on uploaded image from a custom form?
- How to make front end form only accept certain values
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- frontend image post uploader
- Using POST method in meta box, no results
- Form action doesn’t work if slug isn’t same as custom post title
- Checking if $_FILE isset for an array of file upload metaboxes
- How to: wordpress job listing and candidates details
- Why won’t this jQuery code work?
- show custom value from frontend form in a post (custom post type)
- Create a custom post type for a photo post
- File sharing platform for user contributions? [closed]
- How to selected value default in option list?
- Cannot upload featured image to a custom post type
- Invalid file type when using wp_upload_bits to upload PDF to a custom post type
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Submit Custom Postypes from frontend
- How to submit custom post type front end form when a user buy specific product
- How to upload two input files [closed]
- Change dynamically the dropdown list value
- Why this didn’t work if i use get_the_ID(), but works if i pass the numeric id
- Why it doesn’t create a custom post type after form submitting
- How to submit the date with ajax?
- ‘Simple’ Reservation System
- WordPress retrieving $post based on random key in $_POST
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Guided post type create based on category tree
- Show ajax form resuslts in page
- Advanced search form with multiple custom fields
- Make it impossible to save a custom post type with both video and image selected?
- Multi Photo Upload with Caption on Front End for Custom Post Type
- custom search form for custom post
- Getting Custom post category from Form
- Understanding the workflow of form creation plugin
- Custom Upload Directory for Custom Post Types
- Front end page submission form does not attach custom post type
- How to create a petition like form based on custom post types?
- Front-end form submission not creating post
- Custom post type media upload error with custom user role
- Forms with multiple element types using custom post types
- adding a shortcode into a custom post type
- Submiting custom form give error 404
- Custom Post Type to Upload Images
- Allow authors to create article image
- From form submission values – dynamically update CPT “has_archive” slug and custom taxonomy “rewrite” slug value
- Custom plugin contact form connecting to mailchimp API
- Changing upload directory and migrating old attachments
- How to add categories to a custom post type using wp_insert_post($new_post);