WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Post with a lot of images... don't show images (12 posts)

  1. xiaozhu
    Member
    Posted 5 years ago #

    Hi,

    I was just wondering about a strange WordPress thing.

    Some of my posts have a lot of images. For example, the page The World has quite a few screen captures of all the blog I read.

    However, the images don't display: the page or the post is empty. However, if I log in and check the post (edit), I can see the HTML and the pictures. They just don't publish.

    I recently upgraded to WP 2.7, but it started before. Meanwhile, I hadn't touched anything in my blog in a few months (plugins etc.) because I was traveling abroad, so I can't think of anything suddenly causing the problem.

    Any clue?

    Thanks

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Looks like it could be theme related. Have you tried using the default theme just to see if it makes any difference?

  3. xiaozhu
    Member
    Posted 5 years ago #

    Thanks for your suggestion.

    I did try to change theme, and it didn't make a difference.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    If you successfully changed to the default theme and the images didn't appear, I think those images haven't actually been added to your posts.

    What can you see in the Post textarea when you try to edit any of these posts? Any reference to <img or [gallery]? Are you using a plugin to manage your images?

  5. xiaozhu
    Member
    Posted 5 years ago #

    I can see the images in the post text area, and I can see the the img code in the HTML area.

    And the images have been there forever...

    I know it doesn't make sense, but the best way I can explain it is, one day the images were there, one day they weren't anymore, and I haven't touched or updated anything!

    And it only happens if the post or the page has a lot of images. I recently tried to post something with about 12 pictures (all resized!), and after 10 pictures, the post just wouldn't display images, it was blank. I removed two pictures, and everything was fine.

    It looks like there is a limit on how many pictures I can post!

  6. esmi
    Forum Moderator
    Posted 5 years ago #

    I've created WP pages will galleries that contain more than 12 images. Thumbnails, admittedly but I've never hit a problem.

  7. mores
    Member
    Posted 5 years ago #

    check your source code to see if the images are in the code - maybe you have a styling problem where the image-part breaks out of a div or something if it exceeds a certain width/height.

  8. esmi
    Forum Moderator
    Posted 5 years ago #

    Already checked the source. Not a single image tag. In fact, the entire post area is completely devoid of content. There are also quite a few validation errors which, whilst they won't cause images to disappear from the markup, certainly won't be helping.

  9. mores
    Member
    Posted 5 years ago #

    Hmmm, those validation errors do make me suspicious.
    Look at them - you seem to be inserting html tags insite html tags:
    first error
    <div id="header" class="<br />
    Maybe this is not what you did, you maybe added some PHP code there and that doesn't return what it should.

    And very often you seem to be adding extra spaces to things.
    <br is not the same as < br
    An HTML tag always starts with a < and then continues right on with the tag, no space!
    Might want to do some bugfixing there, maybe that's the problem.
    Why you can display only up to 10 images is still a mystery to me, though.
    Are you maybe embedding the gallery incorrectly?

  10. xiaozhu
    Member
    Posted 5 years ago #

    Sorry for the late reply, I was abroad.

    A few things:

    - Images shouldn't break the theme, they are cropped to fit in it. Besides, they were displaying just fine before...

    - I'm not sure what you mean by "not a single image tag". I uploaded the screenshot with the image uploader and each image has a name etc. "In fact, the entire post area is completely devoid of content." Same, I don't understand.

    - I'll do my best to fix the error, but I'm not a coder. For example, where do you find that "<div id="header" class="
    "? In the page.php?

    Thanks!

  11. mores
    Member
    Posted 5 years ago #

    No idea where it is, I can only see the end result. I guess it's in the header.php, or single.php (since we're looking at posts, not Pages)

  12. xiaozhu
    Member
    Posted 5 years ago #

    Alright, I think it's time to close this thread.

    I still haven't found what caused my HTML table in WordPress to disappear, but I found others who had the same problem (here, here...)

    I used someone else's fix: the TinyMCE plugin, which so far has been okay for me.

    I'm still wondering what causes that though!

    Thanks for your help and your patience, esmi and mores ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic