WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] uploaded images associated to post id: template tag to include it? (5 posts)

  1. Martensen
    Member
    Posted 6 years ago #

    if you upload an image using the wysiwyg editor, it somehow is associated with the post you are writing, with the post id.

    i need a template tag to insert this post-id-associated image (just the first one, not all uploaded images for that post) to the posts area in my template.

  2. Bramus
    Member
    Posted 6 years ago #

    Can't you add the link to your image as a custom field to a post and then show it by calling a get_post_meta() inside The Loop (see http://codex.wordpress.org/Using_Custom_Fields)

  3. Martensen
    Member
    Posted 6 years ago #

    i could, certainly, but the client is probably too stupid or too lazy.

    there must be a way to add the image or thumbnail (floating inside of an excerpt) with a template tag. there must be.

  4. moshu
    Member
    Posted 6 years ago #

    This plugin:
    http://guff.szub.net/2006/02/09/post-image/
    does something like that - "(just the first one, not all uploaded images for that post)"
    Give it a try...

  5. Martensen
    Member
    Posted 6 years ago #

    moshu, it looks like, at the same time i am posting this, that you posted your answer 4 minutes ago. and about 4 minutes ago i found the exact same plugin myself — weird :D

    thanks :)

Topic Closed

This topic has been closed to new replies.

About this Topic