Martensen
Member
Posted 5 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.
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)
Martensen
Member
Posted 5 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.
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...
Martensen
Member
Posted 5 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 :)