getButterfly Logo

How to migrate from widgets to shortcodes

The development version of ImagePress introduced shortcode widgets. This means you can add a shortcode to a text widget.

The previous widgets showed the most liked/voted images and the most popular ones (based on views). The shortcode does, basically, the same thing, the only difference being the reduced number of database queries.

After ImagePress updates, your widgets will no longer be available, so just create a text widget and add the [imagepress] shortcode:

Use the shortcode tag [imagepress mode="likes"] in a text widget to display most liked/voted images.
Use the shortcode tag [imagepress mode="views"] in a text widget to display most viewed images.
Use the shortcode tag [imagepress mode="likes/views" count="10"] to adjust the number of displayed images.