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
- upload featured image using custom post type
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Custom post type RSS feed, multiple post published on same day bug
- Order post by date with ACF
- Facebook social publisher and custom post type fields [closed]
- Custom Post Type – Duplicate Page Slugs
- Custom post type conditional in loop
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Taxonomy/Custom post type structure suggestion on a movie site
- how to show a category from a CPT?
- Refine custom posts by author
- Displaying custom field according to date
- Custom post type’s permalink adds the name of the post type before the post name
- Displaying and searching Custom Posts
- Get Tags by specific Category of Custom Post Type
- Post2Post refusing to show linked posts
- Search by tag name and category
- How to sort the admin area of a WordPress custom post type by a custom field
- Importing Data from a Non-WordPress database, into WP
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Taxonomy in URL
- Ordering values entered in Custom Taxonomies
- custom comments form for custom post type
- Listing all term items alphabetically / sorting loop
- Page for custom post type
- How to produce a sub-page-system in WordPress
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- save_post custom post type ? $_POST not working?
- Single custom post type’s menu ancestor/parent is Posts archive page
- Change the Custom Taxonomy URL Slug pattern
- can these 3 queries be re-written as 1 query?
- Searching Custom Fields
- Want to be able to sign up subscribers as authors
- Advanced search form with filters for custom taxonomies
- Looking for Direction regarding Custom Posts
- Custom taxonomy and post type with same slug