Support » Plugin: mPress Image Refresh » How to add image?

  • Resolved loiruca

    (@loiruca)


    HI, I just installed this plugin but I might be missing something. I followed the instructions to add images to my page, but it only adds the images to the page and there is no place to add the shortcode. What I’m missing? I’m clicking on the native WP “Add Image” button above the tools because I don’t see any other “add media” button. Thanks!

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

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

    (@woodent)

    @loiruca

    Thanks for inquiring! It can be a bit confusing, depending on how you are expecting things to work.

    The shortcode will go in the main content area as text. So, just typing out [mpress_image_refresh] in the content area is all you need to do to add the shortcode. If you ever see that shortcode text on the front end of the site, then the plugin needs to be activated.

    Once the shortcode is in place, it will (by default) randomly display an image from among any images that are attached to that post (or page). The confusing bit is how WordPress determines what images are actually “attached” to a post. Here are a few rules around how this works:

    – If you upload an image directly to the post where you inserted the shortcode, the image is considered “attached” to that post, even if you delete the image from the post (but not from the media library).
    – You can upload an image directly to the media library and then insert it into a post and it will then be permanently “attached” to that post. But cannot then be attached to another post.

    The safest thing is to either directly upload the images to the post, or explicitly specify the images you want to display from the media library using the ‘attachment’ attribute, like so:

    [mpress_image_refresh attachment="4, 10, 184"]

    To identify the image (attachment) IDs, just look for item=4 in the URL when viewing a specific image in the media library. The number (4 in this example) is the attachment ID.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add image?’ is closed to new replies.