• Resolved Tony Law

    (@lbtdev)


    I am trying figure out how to suppress the main theme post template in a single job posting? Whenever I click on a job in the list, it goes to the single job post which displays fine, however, after the footer the default post template from my theme is displayed? – I have moved the single-jobs.php file into my child theme and it’s better, but the post is repeated underneath the footer?

    I am also trying to implement a ‘job search’ widget in the front end. I’ve written the widget itself, but I’d appropriate some direction on the actual search function as I’m not sure what the data structure is to hook in a search to.

    The job posting page I am trying to sort can be found here: https://dev.radmagazine.co.uk/job/test-job/

    • This topic was modified 6 years, 11 months ago by Tony Law.
Viewing 5 replies - 1 through 5 (of 5 total)
  • did you solve your problem?

    best regards

    Solution with X-Template:
    According to the plugin author reply mentioned here, they recommend doing the following:

    Use a child theme, please follow this guide.
    Create this file in child theme directory (jobs/single-jobs.php).
    Inside this file, please paste the following code snippet:

    <?php
    function add_single_job() {
    	?>
    	<div class="wrap">
    		<?php
    	if( function_exists('get_job_fields') ) get_job_fields(); ?>
    
    	</div>
    	<?php
    }
    add_action( 'x_before_the_content_begin', 'add_single_job', 10 );

    Hope this will help you, too.

    Regards

    • This reply was modified 6 years, 11 months ago by djjetta.
    • This reply was modified 6 years, 11 months ago by djjetta.

    hi,

    any chance to right this error without creating a child theme?

    thank you

    Hi Vicetro,

    Yes, shure.

    I think you have to simply create this file in your active theme directory (jobs/single-jobs.php).

    But after a theme update it could be lost and you have to create this again.

    Regards

    Thread Starter Tony Law

    (@lbtdev)

    Yes, that’s nailed it. thank you!

    • This reply was modified 6 years, 11 months ago by Tony Law.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom job post template?’ is closed to new replies.