Support

Account

Home Forums General Issues Image src blank Reply To: Image src blank

  • I got it working with

    add_action('generate_after_entry_title','gabster_view_logo' );  
    function gabster_view_logo() {  	
    if ( function_exists( 'get_field' ) ) {
    	$tag = get_the_tags();
    	$term_id = $tag[0]->term_id;
    	$term = get_term( $term_id );
    	$image = get_field( 'view_logo', $term );
    }
    	if (is_home() || is_archive()) {?> 
    			<div class="view-logo"><img src="<?php echo $image; ?>" /></div>	
    	<?php 
    	}
    }
    

    Output
    https://gyazo.com/ccf55b46b8c06416cb2d3c9cbe3cbfb4