attachments associated with a post
-
If an image is uploaded through the media manager, and inserted into a post at the time it is created – is there some easy way to extract the ID of that new image from within the template code?
What I really want to be able to do is get at the +thumbnail+ for a full-size image that is uploaded in a new post, so it can be included in a “table of contents” on the home page.
Right now I use a kludgy way: examining get_the_content, doing some regexp operations, and then looking at the file-system to determine the thumbnail’s name and create an appropriate img src.
There has to be a better way, right?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘attachments associated with a post’ is closed to new replies.