• Resolved pawprintexample

    (@pawprintexample)


    Hey Mike!

    Got everything to work and I entirely forgot that the updates would wipe some settings clean!

    I went ahead and updated the mail subject in the wp-job-manager-template.php, is it possible to copy this file and alter it so it overrides the original and I can keep my changes?

    If not, can you loan me your expertise on getting the Apply Emails to dynamically fill using the job-application.php file?
    Right now my code is –

    <?php if ( $apply = get_the_job_application_method() ) :
    	wp_enqueue_script( 'wp-job-manager-job-application' );
    	?>
    
    <br/>
    
    	<div class="application">
    		<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email . '?subject=' . get_post_meta( $post->ID, '_job_jobid', true ); ?> &body=Greetings%21%0A%0AThank%20you%20so%20much%20for%20your%20interest%20in%20working%20with%20Digital%20Staffing%21%0APlease%20attach%20your%20resume%20and%20contact%20information%20to%20this%20email%20before%20you%20send%20it%20so%20we%20know%20a%20little%20bit%20about%20you%21%0A%0AFeel%20free%20to%20replace%20this%20text%20with%20a%20cover%20letter%20or%20message%20to%20the%20recruiter%21%0A%0AThank%20you%20again%21%0A%0ADigital%20Staffing%0A%0A" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    
    		<div class="application_details">
    			<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email . '?subject=' . rawurlencode( $apply->subject ); ?>" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    		</div>
    	</div>
    <br/>
    
    <?php endif; ?>

    Which is working quite fantastically minus of course my subject line being not what I wanted!

    Thank you!!!

    https://wordpress.org/plugins/wp-job-manager/

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    All working now?

    Thread Starter pawprintexample

    (@pawprintexample)

    Something isn’t quite right.. missing a character somewhere… hmmm

    Thread Starter pawprintexample

    (@pawprintexample)

    Found it!

    <?php if ( $apply = get_the_job_application_method() ) :
    	wp_enqueue_script( 'wp-job-manager-job-application' );
    	?>
    
    <br/>
    
    	<div class="application">
    		<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email;?>?subject=<?php printf( "New Resume Submittal for %s / "%s", get_post_meta( $post->ID, '_job_jobid', true ), $post->post_title"  ); ?> &body=Greetings%21%0A%0AThank%20you%20so%20much%20for%20your%20interest%20in%20working%20with%20Digital%20Staffing%21%0APlease%20attach%20your%20resume%20and%20contact%20information%20to%20this%20email%20before%20you%20send%20it%20so%20we%20know%20a%20little%20bit%20about%20you%21%0A%0AFeel%20free%20to%20replace%20this%20text%20with%20a%20cover%20letter%20or%20message%20to%20the%20recruiter%21%0A%0AThank%20you%20again%21%0A%0ADigital%20Staffing%0A%0A" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    
    		<div class="application_details">
    			<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email;?>?subject=<?php printf( "New Resume Submittal for %s / "%s", get_post_meta( $post->ID, '_job_jobid', true ), $post->post_title"  ); ?> &body=Greetings%21%0A%0AThank%20you%20so%20much%20for%20your%20interest%20in%20working%20with%20Digital%20Staffing%21%0APlease%20attach%20your%20resume%20and%20contact%20information%20to%20this%20email%20before%20you%20send%20it%20so%20we%20know%20a%20little%20bit%20about%20you%21%0A%0AFeel%20free%20to%20replace%20this%20text%20with%20a%20cover%20letter%20or%20message%20to%20the%20recruiter%21%0A%0AThank%20you%20again%21%0A%0ADigital%20Staffing%0A%0A" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    		</div>
    	</div>
    <br/>
    
    <?php endif; ?>

    THANK YOU THANK YOU THANK YOU!!!!!

    Thread Starter pawprintexample

    (@pawprintexample)

    hmmm it was working, then i went to edit the other Apply Button i had in the single job listing template

    <div class="application">
    		<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email;?>?subject=<?php printf( "New Resume Submittal for %s / "%s", get_post_meta( $post->ID, '_job_jobid', true ), $post->post_title" ); ?>&body=Greetings%21%0A%0AThank%20you%20so%20much%20for%20your%20interest%20in%20working%20with%20Digital%20Staffing%21%0APlease%20attach%20your%20resume%20and%20contact%20information%20to%20this%20email%20before%20you%20send%20it%20so%20we%20know%20a%20little%20bit%20about%20you%21%0A%0AFeel%20free%20to%20replace%20this%20text%20with%20a%20cover%20letter%20or%20message%20to%20the%20recruiter%21%0A%0AThank%20you%20again%21%0A%0ADigital%20Staffing%0A%0A" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    
    		<div class="application_details">
    			<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email . '?subject=' . rawurlencode( $apply->subject ); ?>" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    		</div>
    	</div>

    So i have this in the job application file – it shows a cute little smiley face in place of code.. it’s not liking the %s & “%s” but idk why… has to be something other than the missing quotation mark from your code.

    Thread Starter pawprintexample

    (@pawprintexample)

    Oh my goodness, i cant believe i figured it out!

    I am SO PROUD OF MYSELF and i could NOT have done it without you!!!
    The code has to be on the page you want the button to be on, so i put mine in my single job listing template file

    <?php if ( $apply = get_the_job_application_method() ) :
    	wp_enqueue_script( 'wp-job-manager-job-application' );
    	?>
    
    <br/>
    
    	<div class="application2">
    		<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email . '?subject=New Resume Submittal for ' . get_post_meta( $post->ID, '_job_jobid', true ) . ' / ' . $post->post_title ; ?>&body=Greetings%21%0A%0AThank%20you%20so%20much%20for%20your%20interest%20in%20working%20with%20Digital%20Staffing%21%0APlease%20attach%20your%20resume%20and%20contact%20information%20to%20this%20email%20before%20you%20send%20it%20so%20we%20know%20a%20little%20bit%20about%20you%21%0A%0AFeel%20free%20to%20replace%20this%20text%20with%20a%20cover%20letter%20or%20message%20to%20the%20recruiter%21%0A%0AThank%20you%20again%21%0A%0ADigital%20Staffing%0A%0A" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    
    		<div class="application_details">
    			<?php if ( $apply->type == 'email' ) : ?>
    				<a href="mailto:<?php echo $apply->email . '?subject=' . rawurlencode( $apply->subject ); ?>" class="jbapplybutton" target="_blank">Apply via Email!</a>
    			<?php endif; ?>
    		</div>
    	</div>
    <br/>
    
    <?php endif; ?>

    Now i just need to figure out how to call it from the other template file πŸ™‚ Gosh I love this

    Plugin Author Mike Jolley

    (@mikejolley)

    Hope you work it out πŸ™‚

    FYI, this user had a similar scenario with the subject http://wordpress.org/support/topic/job-id-into-the-subject-line-of-the-email?replies=10 Not saying use that, just showing an alternative solution. In your case you need the template change to add your ‘body’.

Viewing 6 replies - 16 through 21 (of 21 total)

The topic ‘Editing wp-job-manager-template.php’ is closed to new replies.