You say that the listing is a custom post type so each job listing has a post ID so you can just pass that to your uploadcv.php in your Apply Now Button :
<a href="https://wordpress.stackexchange.com/questions/22457/.uploadcv.php?listing_id=<?php echo $post->ID; ?>">Apply Now</a>
and then retrieve that in your uploadcv.php :
$listing_ID = (int)$_GET['listing_id'];
Now as far as saving the CV in the database, that would be a bad id, when you can simply upload the cv to your server and just save the URL in the database.
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
- 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
- Passing Variable as URL Parameter — Security concerns?
- Custom permalink with pagination
- Pagination Doesn’t Work
- Removing Image Sizes for Custom Post Type
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Image size filtering in Media uploader according to custom post type
- Rename the insert button in media upload window
- Change upload_dir folder at a certain cpt but cant change back
- 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
- Upload Image from Front End and Resize
- MP3 Manager for WordPress
- How to rename image at uploading on specific plugin or post-type in WordPress
- 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
- Force documents to appear in Featured Image dialogue
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- Display users uploaded files as posts
- Get image post ID in media upload
- 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
- Custom taxonomy rewrite with query var returns %2F in URL
- How to update post meta on uploaded image from a custom form?
- frontend image post uploader
- Checking if $_FILE isset for an array of file upload metaboxes
- How to add multiple images to a custom post type without plugin [closed]
- Why won’t this jQuery code work?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Create a custom post type for a photo post
- File sharing platform for user contributions? [closed]
- Custom post types and custom variables — add_rewrite_tag() not working
- 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
- Insert into post button missing on custom post type
- Why this didn’t work if i use get_the_ID(), but works if i pass the numeric id
- How can I get custom post types to recognize pretty permalink variables?
- 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
- CPT year wise archive based on custom date Field
- Get list of all Topics in use by a custom post type
- Single Post (CPT) in two pages – Normal and Extended
- Create Custom Post Type PDF File (Like Media) Then Add Searchable Custom Fields
- Custom Upload Directory for Custom Post Types
- Custom post type media upload error with custom user role
- adding a shortcode into a custom post type
- Custom Post Type to Upload Images
- Allow authors to create article image
- Changing upload directory and migrating old attachments
- Taxonomy, Terms, and Template Files
- Quick edit screen customization
- How do I filter the excerpt metabox description in admin?
- WP_Query orderby custom field then post_date in one query
- How to show more posts on an archive page?
- How to query custom post type by term?
- How to get the first term for the current taxonomy?
- Including an External File in a Post (and Using Processed Paths)
- Notice: Undefined property: stdClass::$delete_posts with custom post type
- Ignore sticky posts if post is not in meta query
- Custom Post Type with has_archive ignores my custom archive and single template
- Pagination on a custom post type loop
- Display all post titles of current post type
- Custom post type multiple loop by taxonomy term
- Add custom post type settings to wordress default posts
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- WordPress subpages to custom post types
- Custom Post not working as expected
- Remove categories taxonomy from custom post type
- Generate new post from email
- Custom Post Type Archive Pagination
- Preventing role reading others posts
- How to keep a record of changes to a custom field?
- Post type to calendar
- WP query_posts group by meta field related
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- custom post type and a “sticky” position taxonomy
- Is image slider possible in wordpress post
- Confused about where to store my data
- Pagination for custom query returns 404
- How to avoid hardcoded text in a custom page template?
- How to use get_sidebar in plugin folder?
- How to Create Custom Post Type with Multiple Color Options?
- Filter CPT based on meta box value using Flexible Posts widget?
- Retrieve a post with its ACF repeater fields in wordpress
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs