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.