WordPress.org

Forums

mPress Image Refresh
[resolved] loading only the images you want in media folder (15 posts)

  1. ashton139
    Member
    Posted 9 months ago #

    is there anyway to only load the images you have in media folder without the other images loading in as well? thank you.

    https://wordpress.org/plugins/mpress-image-refresh/

  2. Micah Wood
    Member
    Plugin Author

    Posted 9 months ago #

    @ashton139,

    I'm not clear on exactly what you are asking. What do you mean when you say 'media folder'?

    It is possible to exclude specific images using the 'not' attribute in the shortcode as explained here: http://wordpress.org/plugins/mpress-image-refresh/other_notes/

    I'd be glad to provide more details when I better understand what you are trying to do.

    Thanks!

  3. ashton139
    Member
    Posted 9 months ago #

    thanks for your reply, well in the media folder contains the images that are being randomly selected right? I saw you had a code to stop loading all others in the media folder I saw your Example: [mpress_image_refresh not="2310, 2319"] but what I want to do since that folder holds many other images is to only load the ones I want I got 5 for now. because once I add more images in my media folder it too will be included in the random images, I don't want that to happen I only want 5 to random selected is there a way I can do that? also is there a way i can load other images outside of that, I got a image folder on my server I would like for that to happen. Please do let me know if this is possible. I appreciate your hard work on this plugin, it is great.

  4. Micah Wood
    Member
    Plugin Author

    Posted 9 months ago #

    @ashton139,

    So when you say 'media folder' you are referring to the 'Media Library' in the WordPress admin, right?

    The way the plugin currently works is it pulls in images that have been attached to a specific post. So there is not a way to pull in a specific set of images unless they are all attached to a post. However, pulling in a specific set of images wouldn't be a difficult thing to do.

    What if I were to add an 'attachment' attribute to the shortcode where you could explicitly set the ID(s) for the images you want to show, like this?

    [mpress_image_refresh attachment="310, 2045, 4110"]

  5. ashton139
    Member
    Posted 9 months ago #

    Ok thanks I will see if this works.

  6. ashton139
    Member
    Posted 9 months ago #

    i am not using a post by the way im setting the ids from the medial library in the wordpress admin yes that is correct.

  7. ashton139
    Member
    Posted 9 months ago #

    You are the man, I was doing something wrong, i made the post and put the images in there the attachment="" works great when i refresh the page the others do not load. Sorry for my lack of understand of the post page for this to work correctly. im little new to wordpress i normally do that on from folders but I got it now. Thanks gain.

  8. Micah Wood
    Member
    Plugin Author

    Posted 9 months ago #

    @ashton139,

    Well, the 'attachment' attribute isn't actually implemented in the plugin... I was merely pitching it to you as a potential feature. However, it seems that the default shortcode is performing as you were expecting then?

  9. ashton139
    Member
    Posted 9 months ago #

    Oh, ok, I like that feature in the future thou since is a bit more strict to keep certain images in a pits that could be used for other purpose as well. Let's say I only want to have one post 1100 for all random images instead of having to make more post I could just keep one post for all my images across other layouts. Does this make sense? Thanks again.

  10. catxnc
    Member
    Posted 8 months ago #

    hi there. Firstly, is the plugin compatible with 4.0? Also can it manage multiple images on a page (not post)?

    Thanks!

  11. ashton139
    Member
    Posted 8 months ago #

    Yes catxnc i have upgraded to 4.0 all works fine. no problems there. hope that helps. i am using mine on a page. the post is just the linking base for the images to load from.

  12. catxnc
    Member
    Posted 8 months ago #

    ok grea thanks for the info. Can it manage multiple images on a page?

  13. ashton139
    Member
    Posted 8 months ago #

    yes it can. your welcome.

  14. Micah Wood
    Member
    Plugin Author

    Posted 8 months ago #

    @ashton139,

    Just wanted to let you know that I added the 'attachment' shortcode attribute with the latest release. You can read the updated shortcode documentation here: http://wordpress.org/plugins/mpress-image-refresh/faq/.

  15. ashton139
    Member
    Posted 8 months ago #

    thanks allot man, i appreciate it.

Reply

You must log in to post.

About this Plugin

  • mPress Image Refresh
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic