Featured img in custom layout
-
To make any img appear in desirable way I should write in layout template next:
<figure class=”responsive”
data-media=”<?php bloginfo(“stylesheet_directory”); ?>/img/name.png” >
</figure>
So, I can get any img but not the featured one to make it easy to set for inexperienced user.
Can I get the path to featured post img?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Featured img in custom layout’ is closed to new replies.