List of latest images with a link to post (3 posts)

  1. Dzonny
    Posted 3 years ago #

    Hello there.

    I would like this plugin to edit so the images shown in widget is linked to a post where is used.

    Or if there's a way to anyhow show latest uploaded images from media and show them linked to right post outside of WP that would be cool as well. Any help would be appreciated.


  2. bcworkz
    Posted 3 years ago #

    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.

  3. srgjc78
    Posted 3 years ago #

    Thanks, this is exactly what I was looking for.

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.