Answer the question
In order to leave comments, you need to log in
How to make such output of record?
Good afternoon everyone. Help to realize
in the record there is only 1 picture. the following output is required:
<a href="(ссылка на изображение в посте)"><img src="(миниатюра поста)" alt="" title="(заголовок поста)"/></a>
Answer the question
In order to leave comments, you need to log in
Try inserting the following code into your template inside the loop:
<a href="<?php the_post_thumbnail_url('full'); ?>">
<img src="<?php the_post_thumbnail_url('thumbnail'); ?>" alt="" title="<?php the_title(); ?>"/>
</a>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question