Support » Plugins and Hacks » mPress Image Refresh » [Resolved] post_id

[Resolved] post_id

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Micah Wood



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

    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 ?

    Plugin Author Micah Wood



    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.

    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..

    Plugin Author Micah Wood


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

    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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] post_id’ is closed to new replies.