Hello my friend,
I read this article on how to create WordPress widgets and it was very useful. I have done all, but I need to show the thumbnail before the text. My code now is:
if (have_posts()) :
while (have_posts()) : the_post();
echo the_post_thumbnail($post_id, ‘medium’);
I have tried to change something, but my WordPress crashes and shows me a white page. Please can you help me? Thank you in advance!