Support » Plugins » Hacks » List of latest images with a link to post

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    The plugin makes a query for the latest few attachment images. It then steps through each result to get the image url. Since attachments are a special type of post, each one has the ID of it’s parent as part of the object returned. The parent is typically the post associated with the image. You can use this ID, for instance, to pass to get_permalink() and use the result to build a link.

    Be warned that if you hack this plugin, your changes will be lost if you update the plugin.

    Thanks, this is exactly what I was looking for.

    Now I need a product image system like this site http://allproscience.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List of latest images with a link to post’ is closed to new replies.