• Resolved Andrew Rothman

    (@arothman)


    According to https://wpjobmanager.com/document/getting-started/single-job-listings, the job detail pages use the ‘single.php’ template and you can create a new template file in your theme named ‘single-job_listing.php’ and edit it accordingly.

    I’ve tried putting the ‘single-job_listing.php’ page in the /theme/ root as well as the /theme/page-templates/ and in /theme/job_manager/. It appears to have no effect anywhere I use it.

    Where exactly should I be dropping this file so that it overrides single.php for the jobs?

Viewing 1 replies (of 1 total)
  • Thread Starter Andrew Rothman

    (@arothman)

    I was able to resolve the issue with a custom function like this:

    function set_template( $post_id, $xml_node, $is_update ) {
    $import_id = wp_all_import_get_import_id();
    if ( $import_id == ‘1’ ) {
    // Set the page template meta key.
    update_post_meta( $post_id, ‘_wp_page_template’, ‘page-templates/current-job.php’ );
    }
    }
    add_action( ‘pmxi_saved_post’, ‘set_template’, 10, 3 );

Viewing 1 replies (of 1 total)
  • The topic ‘Correct file path for overriding single.php’ is closed to new replies.