Shortcodes

[wlt-photo-recent]

The following shortcode is available in the Pro Plus version only and available from version 5.2 onwards.

A simple shortcode that displays the most recent photo uploaded by the user.

Shortcode Arguments

The shortcode supports the following arguments:

Argument Description Options Example
css-class Specify an additional CSS class for the photo frame. String (empty by default) [wlt-photo-recent css-class="a-css-class"]
error-message Message to display if a relevant photo could not be found. String. Defaults to an in-build message. [wlt-photo-recent error-message="No photo!!"]
height Allows you to specify the maximum height for the photo. It is best to specify the width argument as well. Number (default: 200). [wlt-photo-recent height="400" width="400"]
width Allows you to specify the maximum width for the photo. It is best to specify the height argument as well. Number (default: 200). [wlt-photo-recent height="400" width="400"]
hide-date If set to true, hide the date that is displayed. True or false (default) [wlt-photo-recent hide-date=true]
custom-fields-to-use (6.1) Keys of one or more Custom Field Photo keys to display within the shortcode. All enabled photo fields that aren't hidden from shortcodes. [wlt-photo-recent custom-fields-to-use="3,4" ]
maximum (6.1) Maximum number of photos to render. 1 [wlt-photo-recent maximum=3]
Yes No Suggest edit
Help Guide Powered by Documentor
Suggest Edit