[mpress_image_refresh]
shortcode where you want your image to appear./wp-content/plugins/
directory and unzip[mpress_image_refresh]
shortcode in the content area where you want your image to appear. Save your changes and check out the results!The [mpress_image_refresh]
shortcode supports a few attributes to give you more control over the results:
post_id
and not
attributes. Example: [mpress_image_refresh attachment="19, 37, 940"]
Optionally, you can also have the shortcode randomly pull from a subset using this syntax: [mpress_image_refresh attachment="19,37,940|453|98"]
[mpress_image_refresh post_id="19"]
[mpress_image_refresh size="full"]
[mpress_image_refresh class="fresh-image"]
[mpress_image_refresh not="2310, 2319"]
[mpress_image_refresh attachment="5,7,9" caption="true"]
.[mpress_image_refresh post_id="19" size="full" not="2310"]
. Also, keep in mind that the shortcode can be used in text widgets. However, you will probably want to define the post_id attribute when using the shortcode in a text widget.
mpress_image_refresh-attachment_id
-- Filter the attachment ID selected for display. Parsed shortcode attributes are provided as an additional parameter to the callback function.mpress_image_refresh-image_atts
-- Filter the image attributes. The attachment post object and parsed shortcode attributes are provided as additional parameters to the callback function.mpress_image_refresh-markup
-- Filter the markup surrounding the image. The attachment post object and parsed shortcode attributes are provided as additional parameters to the callback function.mpress_image_refresh-image_html
-- Filter removed in version 2.0. Use mpress_image_refresh-markup
filter instead.mpress_image_refresh-image_html
to allow for HTML customizations.