Support » Fixing WordPress » how to define “post image”

  • I want to have for each post it’s own image and then when i show post in posts loop, i want this image to be shown next to the post.
    So the point is – i need have an image upload function in the post admin and this should allow me to define exactly 1 image which should be then easily accesible in The Loop.
    The good would be if it could also automaticaly resize/crop image to the predefined size – the same for all posts.

    I have been searching for such plugin in plugin database, the problem is, that there are tons of image plugins, most of them seem to be for <2.0 version and i do not know which one to use.

    How can I do it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Good question, man.

    djmbs

    (@djmbs)

    I have been using http://guff.szub.net/2006/02/09/post-image/ and it seems to work in the way you require… that is, you can write a post and upload an image with the same name as the post slug. And then include a string in the loop which will pull either a thumbnail or the image into the post.

    All good, except, it doesn’t seem to work fully. The first post in the loop appears correctly, each subsequent post displays no image, and when I check the source for the page, content is missing from the src & alt tags.

    Am continuing to search, and will post if I find a solution. Anyone else got any ideas?

    oleman

    (@oleman)

    I just got the plugin “post_avatar” and it works great with WP 2.1. I think this is what you are looking for, at least I hope it is.

    From the readme file.

    == FEATURES ==
    * Easy selection of images in the Write Post screen.
    * Scans images in sub-directories of the image option folder.
    * Allows the following file types: .jpg, .jpeg, .gif and .png.
    * Avatars show up automatically or use a template tag to customize display in themes.
    * Does not display missing images.

    djmbs

    (@djmbs)

    Thanks for that, can you direct me to where you downloaded the plugin? I can’t seem to find mention of it (except for BBPress).

    If you want to upload and insert a thumbnail in posts, try Image Manager: http://wp-plugins.net/?filter=imagemanager

    If you want to generate thumbnails according to image found in posts try post-thumb: http://wp-plugins.net/?filter=post-thumb

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how to define “post image”’ is closed to new replies.