WORDPRESS problem, Pictures not showing !
I have been using wordpress for quite some time but recently I have been having some problem. Like whenever I try to upload some thumbnail photo it just shows up grey ! :O What should I do ?
I have been using wordpress for quite some time but recently I have been having some problem. Like whenever I try to upload some thumbnail photo it just shows up grey ! :O What should I do ?
Hey Jack!
I am a user of WordPress for a long time. The problem you are facing now, I had faced this problem when I was just a beginner, I searched on internet for the solution, discussed the problem with my friends, asked my teachers for the solution. In the end, the solution I come up with was very easy. Since then I have never ever stuck in this problem.
Anyways, moving towards the solution. What you need to do is just to follow these steps:
1. First you have to go to the custom fields.
2. After that add a new filed as thumbnail.
3. Once done, now you have to put the image path as shown in the picture below.
Â
 4. After doing all this, simply put the code (given below) in the template file of custom theme.
Code is:
<?php
if(get_post_meta($post->ID, 'thumbnail', $single= true)) :
echo'<img src="'.get_post_meta($post->ID, 'thumbnail', $single= true).'" title="'.$post->post_title.'" width="98" height="82" />';
endif;
?>
Your problem is solved.
Thanks
Â