PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

My Final Hurdle - Posting Images And Automatic Thumbnails

  1. Chris Higgins
    Member

    Hi all,

    I am currently working on a site for a local animal shelter (http://www.bluecrossanimals.com.au), and I have been building a couple of Gravity Forms so the staff there can post new animals without logging into the Wordpress backend. Several people on this forum have helped me out with installation and custom fields, and I am now at the point where the shelter staff can log into the form, post the info and it appears as a correctly formatted Wordpress post.

    I've allowed the option within my form for the shelter to upload as many as three images of a particular animal. I am also building individual forms for the three different categories the shelter will use (Dogs, Cats, Rehomed Animals), and have made custom post templates for each of these categories.

    The last thing I would like to be able to do is use one of the images that are uploaded as a thumbnail. I've achieved this on a regular Wordpress post using the Tim Thumb plugin ( http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released ), and you can see an example of what I'm going for at http://www.bluecrossanimals.com.au/page/2 (see "Duke" post).

    We've just found out that the shelter is going to be featured on national television on Wednesday, so I'm desperately trying to get their site finished for them by then. They are a not for profit organsation, and I have donated the site to them free of charge but it's starting to consume a fair bit of my time and I'd like to wrap it up and focus on other projects. If anyone can help me out with this last little bit, I'd really appreciate it.

    Cheers, and thanks in advance,

    Chris

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  2. Chris Higgins
    Member

    On reflection, the Tim Thumb plugin should still pull the first image from the post regardless. I just need to figure out how I go about getting the three images to show up in my post, and then I can go about styling them.

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  3. Chris Higgins
    Member

    Found this post by Carl:

    http://forum.gravityhelp.com/topic/photo-upload#post-3151

    I think this explains the problem I'm having, that the images don't automatically appear in the post. I'm sure it's just going to be one line of code that achieves this, I just can't figure it out. Grrrr! :-)

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  4. You might want to check out this previous thread

    http://forum.gravityhelp.com/topic/insert-shortcode-in-post-body#post-5119

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  5. Chris Higgins
    Member

    Thanks Kevin. I have looked at that already, but I don't want to insert the images as a gallery. Do you know of a way to modify this code so that I can just insert the images on their own?

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  6. I personally don't know how to automatically display individual images. The uploader puts the images in the media library and the gallery shortcode is the only way I know of to automatically show the images associated with that post.

    If you do have to use the default gallery, I'd recommend something like the "cleaner gallery" plugin which would give you a lot more styling freedom.

    http://wordpress.org/extend/plugins/cleaner-gallery/

    Of course, if I do find out any other way, I'll let you know.

    Posted 14 years ago on Sunday June 6, 2010 | Permalink
  7. Looking back, I used the gallery with some custom CSS and styled it along with the captions.

    http://forum.gravityhelp.com/topic/using-form-to-submit-blog-data#post-1822

    post screenshot

    That might be something to consider for your full post view.

    Posted 14 years ago on Sunday June 6, 2010 | Permalink