WORDPRESS problem, Pictures not showing !

Asked By 0 points N/A Posted on -
qa-featured

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 ?

SHARE
Answered By 10 points N/A #119524

WORDPRESS problem, Pictures not showing !

qa-featured

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

 

Login/Register to Answer

Related Questions