Images in WordPress themes

<img src="<?php echo get_stylesheet_directory_uri(); ?>/img/icon.png" /> Thumbnails <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'medium' ); } ?>
For placing non-dynamic images inside a WordPress theme


And for thumbnails

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.