• Like categories, in the wp-admin jobs list, I’ve added a field called departments. I’m hoping to display this in the outgoing email to help differentiate between same titled positions.

    I’m fairly new to php, is this the section that feeds the table? After function jobman_list_jobs

    line 70 admin-jobs.php

    jobman 0.7.14

    <?php
    	$fieldcount = 0;
    	if( count( $fields ) > 0 ) {
    		foreach( $fields as $field ) {
    			if( $field['listdisplay'] ) {
    			$fieldcount++;
    ?>

    is it possible for me to implement this into the email? any help would be greatly appreciated.

    Cheers,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter theblakereport

    (@theblakereport)

    Goal is to get values of Custom Job Field Information;
    shortcode:
    [job_field4_label], [job_field4]

    which looks to be the value in the wp_postmeta table metakey ‘data4’

    I’ve been able to get this in frontend-application.php (custom email msg)

    $msg .= '<tr><td style="background-color:#E8E8E8;">Department:</td><td>' . $appdata[data4] . '</td></tr>' . PHP_EOL;

    however, this is displaying the custom data field 4 in wp_postmeta for the application rather than the post for the job description

    line 831

    $appmeta = get_post_custom( $appid );
    
    	$appdata = array();
    	foreach( $appmeta as $key => $value ) {
    		if( is_array( $value ) )
    			$appdata[$key] = $value[0];
    		else
    			$appdata[$key] = $value;
    	}

    Thread Starter theblakereport

    (@theblakereport)

    well I did it, probably not clean, but it’s working ??

    $parents = get_post_meta( $app->ID, 'job', false );
    	if( ! empty( $parents ) ) {
    		$msg .= PHP_EOL;
    		foreach( $parents as $parent ) {
    			$data = get_post( $parent );
    			$appmeta2 = get_post_custom( $data->ID );
    
    			$appdata2 = array();
    			foreach( $appmeta2 as $key => $value ) {
    				if( is_array( $value ) )
    					$appdata2[$key] = $value[0];
    				else
    					$appdata2[$key] = $value;
    			}
    			$msg .= '<tr><td style="background-color:#E8E8E8;">' . __( 'Job', 'jobman' ) . ':</td><td>' . $data->ID . ' - ' . $data->post_title . '</td></tr>' . PHP_EOL;
    			$msg .= '<tr><td style="background-color:#E8E8E8;">Department:</td><td>' . $appdata2[data4] . '</td></tr>' . PHP_EOL;
    			$msg .= '<tr><td style="background-color:#E8E8E8;">Job Page Link</td><td>' . get_page_link( $data->ID ) .  '</td></tr>' . PHP_EOL;
    		}
    		$msg .= PHP_EOL;
    	}

    How do I create a custom job display form

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display "Job Form Settings" Field in Email’ is closed to new replies.