WordPress.org

Ready to get started?Download WordPress

Forums

how to define "post image" (7 posts)

  1. thomask
    Member
    Posted 8 years ago #

    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?

  2. douglascoronel
    Member
    Posted 8 years ago #

    Good question, man.

  3. djmbs
    Member
    Posted 7 years ago #

    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?

  4. oleman
    Member
    Posted 7 years ago #

    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.

  5. djmbs
    Member
    Posted 7 years ago #

    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).

  6. Ramsy
    Member
    Posted 7 years ago #

  7. alakhnor
    Member
    Posted 7 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.