User Photos shortcodes
[ultimatemember_albums] - Display common block "Albums"
[ultimatemember_gallery] - Display member`s block "Albums"
[ultimatemember_gallery_photos] - Display member`s block "Photos"
[ultimatemember_albums] #
Usage: Display common "Albums" block, show all albums of all members
Default attributes:
- column => 2, - number of columns in the grid, it may be: 1, 2, 3, 4
- page => 1, - default screen (influence on pagination)
- per_page => 12 - quantity of albums in one screen
Since: 2.0.6
Example:
[ultimatemember_albums column="3" per_page="6"]
How to change template:
If you want to change something in this template you should copy file /wp-content/plugins/um-user-photos/templates/albums.php to /wp-content/themes/YOUR_THEME/ultimate-member/um-user-photos/albums.php and then edit it.
[ultimatemember_gallery] #
Usage: Display member`s block "Albums"
Default attributes:
- 'user_id' => {current user ID}
Example:
[ultimatemember_gallery]
How to change template:
If you want to change something in this template you should copy file /wp-content/plugins/um-user-photos/templates/gallery.php to /wp-content/themes/YOUR_THEME/ultimate-member/um-user-photos/gallery.php and then edit it.
[ultimatemember_gallery_photos] #
Usage: Display member`s block "Photos"
Default attributes:
- 'user_id' => {current user ID}
Example:
[ultimatemember_gallery_photos]
How to change template:
If you want to change something in this template you should copy file /wp-content/plugins/um-user-photos/templates/photos.php to /wp-content/themes/YOUR_THEME/ultimate-member/um-user-photos/photos.php and then edit it.