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.

Auto insert pictures to post

  1. gazdev
    Member

    Is it possible to have the "post image" actually insert the image uploaded into the post? We're trying to get a form for user submitted photos started and we're close - but the image doesn't seem to be showing. It's in the media library - but not directly attached.

    Thank you,
    tom

    Posted 15 years ago on Monday October 5, 2009 | Permalink
  2. The post image is added to the gallery for the post that is created. There is no way to directly add it to the body because there is no way to know how you want it added to the body, what markup should be used, where it should go, how it should be aligned, etc.

    Posts that are created are designed to be moderated and approved before published. It is during this step where you can insert the image directly into the body if you want.

    Or you can do it dynamically place it without manually inserting by calling in the first post image in the post template theme file using PHP.

    A future release will introduce the ability to configure the post body output so that you can insert uploaded images into the body, but this isn't available just yet.

    Posted 15 years ago on Monday October 5, 2009 | Permalink
  3. ovedmo
    Member

    what do you Mean by:
    "
    Or you can do it dynamically place it without manually inserting by calling in the first post image in the post template theme file using PHP.
    "
    thank you
    moshe ovadia

    Posted 15 years ago on Wednesday November 25, 2009 | Permalink
  4. You can use PHP to pull in the first gallery image for a post. You can read some information here:

    http://wordpress.org/support/topic/246893

    You can also use something like TimThumb to do the same thing.

    WordPress 2.9 will make this easier by introducing a new function call to get the post image.

    You can read more about this here:

    http://justintadlock.com/archives/2009/11/16/everything-you-need-to-know-about-wordpress-2-9s-post-image-feature

    Posted 15 years ago on Wednesday November 25, 2009 | Permalink