Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter tymmy456

    (@tymmy456)

    I tried that but I pu the code like this:

    if (function_exists('the_post_thumbnail') AND !function_exists('tfe_get_image')) {
    		     if(has_post_thumbnail()): ?>
                    <a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(); ?></a>
    				<?php endif; ?>
    
    			<p><a href="<?php the_permalink() ?>"> <img src="HERE THE LINK OF THE PIC" alt=""></a></p>
    		 <?php
             }
    		the_excerpt();
    	}
    	echo $after;
    }

    But it puts the picture even if it already has a featured image. Also it shows on the top of the excerpt no of the left side as it would look with the featured image set manually.
    1.How it looks if I put it manually:
    https://prntscr.com/wrxu7
    2. How it looks when I added the code:
    https://prntscr.com/wrxx6
    3. How it looks with setting the featured image manually.
    https://prntscr.com/wry12
    _______________________________________________________
    Thank you for the help and the code, I really appreciate that :).

Viewing 1 replies (of 1 total)