[wt-photo-recent]
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) | [wt-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. | [wt-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). | [wt-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). | [wt-photo-recent height="400" width="400"] |
hide-date | If set to true, hide the date that is displayed. | True or false (default) | [wt-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. | [wt-photo-recent custom-fields-to-use="3,4" ] |
maximum (6.1) | Maximum number of photos to render. | 1 | [wt-photo-recent maximum=3] |
Help Guide Powered by Documentor