R
R
Ruslan Makarov2016-02-29 23:11:29
PHP
Ruslan Makarov, 2016-02-29 23:11:29

How to display a thumbnail for a specific WordPress post?

Good!
Here is the code that will display the post thumbnail + its size is specified
<?php the_post_thumbnail(array(80,80)); ?>
But how to display it for example in another post????
How to display the post thumbnail with ID like this...?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2016-02-29
@facepook

<?php
echo get_the_post_thumbnail( 100, array(80,80)); ?>
// 100 - id записи
?>

wp-kama.ru/function/get_the_post_thumbnail

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question