theblakereport
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Job Manager] Display "Job Form Settings" Field in Emailwell 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; }
Forum: Plugins
In reply to: [Job Manager] Display "Job Form Settings" Field in EmailGoal 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; }
Forum: Plugins
In reply to: wp_mail_content_typeAndy, very helpful, thank you
Viewing 3 replies - 1 through 3 (of 3 total)