WordPress.org

Ready to get started?Download WordPress

Forums

Image not showing in post (15 posts)

  1. partyvandan
    Member
    Posted 3 years ago #

    So I am having an issue with images showing up in my post. When I create a new post it uploads the image just fine and it shows it in the editor, but then when I publish the post the image doesn't show up to the public. I was not having this issue until I changed the theme.

  2. govpatel
    Member
    Posted 3 years ago #

    Change back to twentyten see if you have the same problem if not than you have problem with the theme.

  3. partyvandan
    Member
    Posted 3 years ago #

    Yeah it's is the theme. Is there anyway to fix that?

  4. jlevan
    Member
    Posted 3 years ago #

    What theme are you using? Also, is the image that is not displaying the Featured Image, or is it an image inserted into the content of the post?

  5. partyvandan
    Member
    Posted 3 years ago #

    This is the theme http://www.templatesold.com/templates/wordpress-themes/wp-corporate/topcorp/5733.html

    I'm trying to insert it into the content of the post.

  6. jlevan
    Member
    Posted 3 years ago #

    I can't be 100% sure, but looking at how the code is structured in the live preview, the images displayed are set as the featured image of the post - in the post insert box near the button to add the post to the page there should be a link "Use as featured image" click this to set the image as the featured, and save the post again.

    The theme also looks like it's using the_excerpt() on the single post page to output content - by default the_excerpt() does not display content images (or any formatting for that matter)

  7. partyvandan
    Member
    Posted 3 years ago #

    I have looked the screen up and down and can't find a place to set a featured image. I found screen shots of where it should be on the dashboard and it's not there.

  8. partyvandan
    Member
    Posted 3 years ago #

    Okay I got the featured image issue worked out, but I am still getting no image on the published post.

  9. jlevan
    Member
    Posted 3 years ago #

    Does the theme come with any documentation for the image feature? My next guess would be that the image is dependent on a custom field.

  10. partyvandan
    Member
    Posted 3 years ago #

    Not that I can find.

  11. healthvotes
    Member
    Posted 3 years ago #

    @partyvandan,
    post the link to your site, that way we can give you a better reply...

  12. partyvandan
    Member
    Posted 3 years ago #

  13. jlevan
    Member
    Posted 3 years ago #

    Check for a single.php file. Look for the line <!--/post-img --

    How is the img tag right above that comment being created?

  14. partyvandan
    Member
    Posted 3 years ago #

    <!--/post-title -->
            <div class="post-date">
              <div class="fl">On
                <?php the_time('M.d.y'); ?>
                , In
                <?php the_category(', ') ?>
                , by
                <?php the_author_posts_link(); ?>
              </div>
              <div class="fr"> <a href="<?php the_permalink(); ?>" title="View <?php _e('Comments'); ?>">
                <?php comments_number(0, 1, '%'); ?>
                <?php _e('Comments'); ?>
                </a> </div>
              <div class="clr"></div>
            </div>
            <?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?>
            <div class="post-pic"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php echo $postimageurl; ?>" alt="<?php the_title_attribute(); ?>" /></a></div>
            <?php } ?>
            <!--/post-img -->
            <div class="post-excerpt">
              <?php the_excerpt(); ?>
            </div>
            <!--/post-excerpt -->
  15. crayadder
    Member
    Posted 3 years ago #

    Hi there,

    I am having the same problem, though the url of the picture is displayed in place of the image itself. I tried using twenty-ten and the same problem exists. My normal theme is Suffusion.

    The WordPress featured image dialog does not seem to work either. I did have Shiba's media library plugin active, but have since disabled it to see if it was causing the problem. Still no change.

    Any help would be very appreciated :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.