Skip to content
WJunction - Webmaster Forum

HELP: Image Uploader not generating Thumbnails and not showing Image URL

Status
Not open for further replies.
Hi,
I have a WP site and image uploading was working fine and it was creating thumbnail but now its not working. Adding image to post and publishing also not showing image.

My site is comicsforest.com


Here is what is showing in text mode.
Code:
<img src="" alt="4585975_21a" class="aligncenter size-full wp-image-77601" />
What used to show (for different image)


Code:
<p style="text-align: center;"><img class="aligncenter  size-full wp-image-77572"  src="http://www.comicsforest.com/wp-content/uploads/2015/05/7OoQ0Os.jpg"  alt="7OoQ0Os" width="500" height="456" /></p>
I searched on forum and found that this guy was also facing some problem and he fixed it after editing some php file.


https://wordpress.org/support/topic/image-uploader-not-generating-thumbnails-and-showing-image-url?replies=15



Newbie to coding, please help.

Regards
 

1 comment

Hi,
I have a WP site and image uploading was working fine and it was creating thumbnail but now its not working. Adding image to post and publishing also not showing image.
you need to add
Code:
add_theme_support( 'post-thumbnails' );
in theme functions.php

after that you will have the option back to "upload images"

to show the images on your "index.php" or "single.php" ,etc

you need to add below code
Code:
<?php if ( has_post_thumbnail() ) { ?>
    <div id="featured_image">
        <?php the_post_thumbnail( 'thumbnail' ); ?>
    </div>
    <?php }
        ?>

under while while (have_posts()) loop,on proper location

[For more knowledge goto here: https://codex.wordpress.org/Function_Reference/add_theme_support]
 
Status
Not open for further replies.

About the author

hullapulla
Active Member · Joined
1,114
Messages
747
Reactions
113
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom