Forum Replies Created

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

    (@tylerplack)

    Great, esmi. How can we make this more dynamic?

    <?php
    if ( has_post_thumbnail() )  echo the_post_thumbnail();
    else {
    	echo '<img src="https://domain/image.jpg" width="xx" height="yy" alt="" />';
    }
    ?>

    See how it says domain/image.jpg? How can I do the <?php bloginfo('template_url'); ?> so it will work in all sites, but still inside this code?

Viewing 1 replies (of 1 total)