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

14611 reviews 1734 hosting providers

Questions & Answers

Display thumbnail of a post in wordpress website

May 22, 2012 by SaraSX
I have the following code displaying the content of a page:
$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?

1 Answer

0 votes
May 22, 2012 by lightSpeed