I'm a bit confused about the usage of the function
the_post_thumbnail(). I know that you can use it inside a loop to display the featured images of posts, but is it possible to use it to display the featured image of a specific page such as blog posts page? I set a certain page as my blog posts page and set a featured image for it. Then I try to display it using
the_post_thumbnail() and nothing happens. I also tried:
$page_id = get_the_ID();
And again nothing happens. I just write this code in the file index.php.
Thanks in advance for any help