The MU forums have moved to

Thumbnail and Medium images size not inserted into img tags (5 posts)

  1. wildebees
    Posted 15 years ago #

    When I choose to insert a thumbnail or medium image into a post, the size is not included in the code - the result. The images always display at the size uploaded.

    Why is this?

    I paste an example of the code inserted into the post here

    <img src="" alt="" title="2696807457_ee778c23d4_o" class="aligncenter size-thumbnail wp-image-5" />

    And the code on another install of wordpress MU and how it normally inserts:

    <img src="" alt="On the beach" width="150" height="87" class="alignnone size-thumbnail wp-image-19" />

  2. wildebees
    Posted 15 years ago #

    Anybody got an idea why my Wordpress MY is not entering the size settings in the image tags? Anyone?

  3. keppy
    Posted 15 years ago #

    Wordpress 2.6 creates three seperate files when you upload an image. The original with the original file name intact, a thumbnail with "-150x150" appended to the file name (or whatever size you have specified in the miscellaneous settings), and a medium sized version with the dimensions appended just like the thumbnail version.

    I believe the only time it inserts the image sizes are if you adjust the size after inserting it into the post by selecting the image, clicking the edit image button, and adjusting the size percentage slider in the image editor popup.

  4. dwenaus
    Posted 15 years ago #

    and how do you access those images within either the code or template tags?

  5. andrea_r
    Posted 15 years ago #

    Each image is saves as an attachment to a post, but it also has its own post ID. The post_parent field shows what post the image is attached to.

About this Topic

  • Started 15 years ago by wildebees
  • Latest reply from andrea_r