Results 1 to 2 of 2

Thread: Adding Custom field to Job Form

  1. #1
    Thread Starter
    thiagz's Avatar
    Join Date
    Oct 2014
    Posts
    51
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Adding Custom field to Job Form

    Hi Guys,

    I badly need someone's help here to tell me what have I missed out, I have done customization on resume form and there was no problem but for submit job it just doesn't work. I'm using JobRoller together with Jobsapp childtheme. The list below shows the modifications I have done so far, but the data is not persisting in DB. I have done the same customization on the job admin screen by adding a new meta-box and the data stores fine, but the front-end is not working as expected.

    submit-job-form.php

    Code:
    <p class="optional"><label for="job_currency"><?php _e('Job Salary Currency', APP_TD); ?></label> <input type="text" class="text" name="job_currency" id="job_currency" value="<?php echo esc_attr( $job->job_currency); ?>" placeholder="<?php _e('e.g. USD', APP_TD); ?>" /></p>
    confirm-job-process.php

    Code:
    add_post_meta($post_id, 'job_currency', $posted['job_currency'], true);
    job-form.php (jr_job_details)

    Code:
    	$details = array( 
    		'your_name' => $data['_Company'],
    		'website' => $data['_CompanyURL'],
                    'job_currency' => $data['job_currency'],
    		'job_title' => $job_details->post_title,
    		'job_term_type' => get_the_job_terms( $job_details->ID, APP_TAX_TYPE )->slug,
    		'job_term_cat' => $category,
    		'job_term_loc' => $loc,
    		'job_term_salary' => $salary,
    		'jr_address' =>  ( !empty($data['geo_address']) ? $data['geo_address'] : '' ),
    		'jr_geo_latitude' => ( !empty($data['_jr_geo_latitude']) ? $data['_jr_geo_latitude'] : '' ),
    		'jr_geo_longitude' => ( !empty($data['_jr_geo_longitude']) ? $data['_jr_geo_longitude'] : '' ),
    		'details' => $job_details->post_content,
    		'apply' => $data['_how_to_apply'],
    		'tags' => $tags,
    	);
    job-form.php (jr_get_job_listing_fields)

    Code:
    	$fields = array(
    		'your_name' => '_Company',
    		'website' 	=> '_CompanyURL',
    		'apply'		=> '_how_to_apply',
                    'job_currency => 'job_currency',
    	);
    single-job_listing.php

    Code:
    <li id="topss"><b><?php _e('Salary Currency',APP_TD); ?>:</b> <?php if ($job_currency = get_post_meta($post->ID, 'job_currency', true)) echo wptexturize($job_currency); ?></li>

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,978
    Thanks
    170
    Thanked 3,407 Times in 3,278 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding Custom Field while Exporting
    By kkavin1987 in forum Clipper General Discussion
    Replies: 2
    Last Post: October 9th, 2013, 03:05 AM
  2. Samcy adding field to registration form
    By eonelson in forum Help Using ClassiPress
    Replies: 4
    Last Post: September 30th, 2013, 04:40 AM
  3. Error Adding Custom Field
    By danromanchik in forum Help Using ClassiPress
    Replies: 6
    Last Post: July 18th, 2012, 05:26 PM
  4. Inserting a custom field from a custom form into the listing preview
    By Fanatic in forum ClassiPress General Discussion
    Replies: 4
    Last Post: May 1st, 2011, 07:17 PM
  5. Adding a Custom Field to a Form...
    By demonlee in forum ClassiPress General Discussion
    Replies: 9
    Last Post: March 28th, 2011, 09:46 PM