WordPress.org

Ready to get started?Download WordPress

Forums

mPress Image Refresh
[resolved] post_id (7 posts)

  1. pehja
    Member
    Posted 1 year ago #

    Hi. I am unable to get the post_d to work. Great plug by the way! And if I can get the post_id to work it would be perfect!

    http://wordpress.org/extend/plugins/mpress-image-refresh/

  2. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    @pehja,

    Sure. Can you go into more detail as to what you are trying to do and what steps you have taken thus far?

  3. pehja
    Member
    Posted 1 year ago #

    Well, I have a page with 6 pictures. And in one (or two) of those 6 places I want the picture to alternate. But not withe the pictures in that page.

    So I have done as you describe. I created a post, inserted 3 pictured. Went back to the page where I want the picture to show. Used the page ID from the previous post in one of those 6 places and used the short code. But it will still take all pictures from that page plus the new pictures from the post.

    Do I make any sence ?

  4. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    @pehja,

    Yes. That makes sense. I just tested that functionality again and I didn't have any trouble with it. However, you do have to be careful about which post an image is actually attached to.

    In order to check what post an image is attached to, you will need to find that image in the media library and check to see what is listed in the 'Uploaded To' column. If the images you put in the new page were pulled from the image library, then they were probably attached to another post already.

    Another way to do the same thing is to use the shortcode on the page and then pass a comma separated list of attachment IDs that you don't want to be in the mix when selecting random images; like this:

    [mpress_image_refresh not="54, 67, 118"]

    This will show all the images attached to the current page except those whose ids you just passed in.

  5. pehja
    Member
    Posted 1 year ago #

    Well I am unable to get it to work. I have set 3 pictures on a post. That post id is 557.
    When i go into the post where I want them to be with this short code
    [mpress_image_refresh post_id="557"] nothing is visible. when I put this [mpress_image_refresh post_id="557&action"] it will pull every picture on the site.

    I have dedicated this 3 pictures only to this post, just to be sure..

  6. Micah Wood
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry, I'm afraid I would have to look in the admin to get a better idea of what is going on.

  7. pehja
    Member
    Posted 1 year ago #

    I Looked in the media gallery and the pictures was attached to a different page? How ever I removed them and the post. Inserted them again in a new post. And now it works. I must have done something wrong.. ;-)

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.