WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dzonny
    Member
    Posted 1 year ago #

    Hello there.

    I would like this plugin to edit so the images shown in widget is linked to a post where is used.
    http://wordpress.org/extend/plugins/last-uploaded-images-widget/

    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.

    Thanks!

  2. bcworkz
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

Tags

No tags yet.