hard coded contact form 7 on job detail page
-
Hi,
I want to replace Simple Job Board Job Application Form with Contact Form 7.
I edited job-application.php file and removed Job Board Job Application Form code and added code form my Contact Form 7: [contact-form-7 id=”823″ title=”Jobseekers_form”]
But the form is not displaying in the front end, I must be missing something, can you please advise? The code looks like the below:
<?php /** * Display the job application form. * * Override this template by copying it to yourtheme/simple_job_board/single-jobpost/job-application.php * * @author PressTigers * @package Simple_Job_Board * @subpackage Simple_Job_Board/Templates * @version 1.0.0 * @since 2.1.0 * @since 2.2.2 Added more @hooks in application form. * @since 2.3.0 Added "sjb_job_application_template" filter & "sjb_job_application_form_fields" filter. */ ob_start(); global $post; /** * Fires on job detail page before displaying job application section. * * @since 2.1.0 */ do_action('sjb_job_application_before'); ?> [contact-form-7 id="823" title="Jobseekers_form"] <?php /** * Fires on job detail page after displaying job application section. * * @since 2.1.0 */ do_action('sjb_job_application_after'); $html_job_application = ob_get_clean(); /** * Modify the Job Applicatin Form Template. * * @since 2.3.0 * * @param html $html_job_application Job Application Form HTML. */ echo apply_filters('sjb_job_application_template', $html_job_application);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘hard coded contact form 7 on job detail page’ is closed to new replies.