Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Dan (a11n)

    (@drawmyface)

    You’d need to edit the content-job_listing.php template and add the target=”blank” to the anchor tag.

    You can find info on overriding template files here:
    https://wpjobmanager.com/document/overriding-add-template-files/

    Hope that helps.

    Thread Starter mr.zatan

    (@mrzatan)

    How to add…

    <?php global $post; ?>
    <li <?php job_listing_class(); ?> data-longitude="<?php echo esc_attr( $post->geolocation_lat ); ?>" data-latitude="<?php echo esc_attr( $post->geolocation_long ); ?>">
    	<a href="<?php the_job_permalink(); ?>">
    		<?php the_company_logo(); ?>
    		<div class="position">
    			<h3><?php the_title(); ?></h3>
    			<div class="company">
    				<?php the_company_name( '<strong>', '</strong> ' ); ?>
    				<?php the_company_tagline( '<span class="tagline">', '</span>' ); ?>
    			</div>
    		</div>
    		<div class="location">
    			<?php the_job_location( false ); ?>
    		</div>
    		<ul class="meta">
    			<?php do_action( 'job_listing_meta_start' ); ?>
    
    			<li class="job-type <?php echo get_the_job_type() ? sanitize_title( get_the_job_type()->slug ) : ''; ?>"><?php the_job_type(); ?></li>
    			<li class="date"><date><?php printf( __( '%s ago', 'wp-job-manager' ), human_time_diff( get_post_time( 'U' ), current_time( 'timestamp' ) ) ); ?></date></li>
    
    			<?php do_action( 'job_listing_meta_end' ); ?>
    		</ul>
    	</a>
    </li>
    Thread Starter mr.zatan

    (@mrzatan)

    OK…

    Already done

    Thank You..

    I tried to edit the link as described, but jobs still open in the same window.

    The code looks like this: <a href="<?php the_job_permalink(); ?>" target="_blank">

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to Open new Window in joblist’ is closed to new replies.