Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14120 reviews 1680 hosting providers

Questions & Answers

Display thumbnail of a post in wordpress website

May 22, 2012 by SaraSX
hi
I have the following code displaying the content of a page:
<?php
$post_id = 50;
$my_post = get_post($post_id);
echo "$my_post->post_content";
 ?>
I want to display the thumbnail of that page. Can someone please let me know how can this be done?
thanks

1 Answer

0 votes
May 22, 2012 by lightSpeed