Shortcode Reference

 
Click me for editor explanation

Not every possible shortcode option is covered by the shortcode generator. This page documents all available shortcode attributes and options.

The basic shortcode for the insertion of a wppa+ display in a page or post is: [wppa].
The shortcode allows attributes that specify the type of wppa+ display as well as the specification of albums, photos or special selection of photos.

The basic structure is: [wppa attr1="value1" attr2="value2" ...] The sequence order of attributes is irrelevant.

Important note: Make sure you do not accidently create the shortcode by a copy from an example text or an email. The double quotes might be "texturized" i.e. opening and closing quotes in stead of simple double quotes. This will result in unwanted behaviour!

Attributes

Attrubte Description Remarks
type The type of the display Default: generic, see the table of types
album The album spicification See the table of album specifications
photo The photo specification See the table of photo specifications
size The width (if not the default) Examples:
size="auto" to make a responsive display with 100% width. This is the default
size="450" to get a display of 450 pixels wide
size="auto,450" to get a responsive display with a maximum of 450 pixels wide
size="0.75" to get a responsive display with a width of 75% of the available width
align The horizontal alignment
Can be one out of left, center, right. Example:
align="center"
Note: Omission of this argument is not the same as align="left". align="left" adds 'clear:left;float:left;margin-right:10px;' to the container style.
taglist Tags to use Used in:
type="multitag" taglist="tag1,tag2,tag3..."
and
type="tagcloud" taglist="tag1,tag2,tag3..."
cols Number of columns Used in:
type="multitag" cols="3" for 3 columns
cols="6,2" for 6 columns on pc and 2 on mobile devices
sub Enable subsearch
Used in:
type="search" sub="1"
Equivalent to the corresponding widget option
root Enable rootsearch
Used in:
type="search" root="1"
Equivalent to the corresponding widget option
calendar Specify calendar type Used in:
type="calendar" calendar="timestamp"
Possible options: 'exifdtm', 'timestamp', 'modified', 'realexifdtm', 'realtimestamp', 'realmodified'.
all Specifies that all days are initially opened Used in:
type="calendar" all="1"
Use of this option is strongly discouraged!
reverse Specifies 'last day first' Used in:
type="calendar" reverse="1"
landing Specifies search landing page Used in:
type="search" landing="1234"
admin Specifies 'admins choice' users Used in:
type="choice" admin="admin,opa-jaap,pietje"
parent To indicate a parent album Used in:
type="upload" parent="13"
Only album 13 and its (grand)children will be displayed in the upload album selection box, as far as the user has the rights to upload to these albums.
Used in:
type="acount" parent="13"
Prints the total number of (grand)childalbums of album number 13.
Used in:
type="pcount" parent="13"
Prints the total number of photos in all (grand)childalbums of album number 13.
Note that the parent album can only be a single album id number.

Types

Type Description Remarks
generic The default shortcode type This is the default type and generates a generic albums display: a list of album covers that have their parent set to ---none---, or the display as requested by the querystring that calls for the page involved.
Example: [wppa type="generic"]
landing Indicates a 'landing' area Same as generic, except that it only displays that what is requested in the querystring. Typically used on a landing page where the display occurs as a result of links from widgets.
Example: [wppa type="landing"]
cover Displays one ore more album covers The requested display type is the cover of an album. The album must be specified in the album attrubute.
Example: [wppa type="cover" album="2"]
Shortcode ReferenceSecond album

Second album

You can even have a link here! Je kan hier zelfs een link hebben!
4
Vues : 277904
album
content
Shows the content of an album album and content are aliases. Displays sub-album covers and thumbnail images of photos in the album as specified in the album attribute.
If the album contains both photos and sub-albums, the sub-album covers are displayed first. If you want the thumbnails to be shown first, tick the box in Advanced settings -> System -> i -> Item 24: Thumbs first

Example: [wppa type="content" album="4"]
thumbs Shows thumbnails Displays thumbnail images of photos in the album as specified in the album attribute.
Example: [wppa type="thumbs" album="4"]
1951
Médaille d'argent
De drie jees.jpg (opajaap)
These boys are world famous in Holland Views: 16173 times
https://wppa.nl/wp-content/wppa-pl/Album-4/De-drie-jees.jpg
Notes: 3.75
1 commentaire
16173 vus
23
HPIM0685.JPG (opajaap)
Where do i find anything to eat? Views: 12038 times
https://wppa.nl/wp-content/wppa-pl/Album-4/HPIM0685.JPG
Notes: 4.00
12038 vus
24
Médaille d'argent
HPIM0687.JPG (opajaap)
Notes: 4.24
2 commentaires
11078 vus
22
HPIM0691.JPG (opajaap)
Notes: 3.20
9762 vus
19
HPIM0696.JPG (opajaap)
Notes: 3.20
8586 vus
21
HPIM0727.JPG (opajaap)
Notes: 3.89
8185 vus
8
Médaille d'argent
HPIM1365.JPG (opajaap)
The big buddha in the garden in Maasbree Views: 16136 times
https://wppa.nl/wp-content/wppa-pl/Album-4/HPIM1365.JPG
Notes: 3.91
2 commentaires
16136 vus
671
Médaille de bronze
(opajaap)
Notes: 4.46
8736 vus
covers Shows sub-album covers Displays sub-album covers in the album as specified in the album attribute.
Example: [wppa type="covers" album="2"]
slide Slideshow Displays a slideshow of the photos in the album as specified in the album attribute.
slideonly Simple slideshow A slideshow without supporting boxes.
slideonlyf Simple slideshow with filmstrip A slideshow with the filmstrip only.
filmonly A slideshow filmstrip only
Example: [wppa type="filmonly" album="4"]
24
22
19
21
8
671
1951
23
24
22
19
21
8
671
1951
23
24
22
19
21
photo A bare photo A single photo as specified by the photo attibute.
mphoto A wp-media type like photo A single photo displayed with the wp caption.
xphoto An extended wp-media type like photo A single photo displayed with an extended caption.
The extension can be: The rating when enabled in II-B7, The share buttons when enabled in II-C1 and/or The commentform when enabled in II-B10
slphoto Single photo slide A single photo in the style of a slideshow, but without navigations.
The following type specifications produce wppa+ supporting boxes rather than photo displays:
upload User upload box Creates a frontend upload box like the upload widget. An album spec can be given to restrict the uploads to the supplied album(s). If the visitor has no rights to upload here, the box will not be displayed.
multitag Creates a multitag selection box like the tags filter widget. An optional taglist spec can be given to restrict the tags shown, a cols spec to specify the number of columns. Example: [wppa type="multitag" taglist="Bird,Duck,Owl" cols="3"]
tagcloud Creates a tagcloud box like the tagcloud widget. An optional taglist spec can be given to restrict the tags shown. Example:
[wppa type="tagcloud" taglist="Bird,Duck,Owl"]
superview Creates a box with content like the superview widget.
search Creates a box with content like the search widget. Optional arguments: sub="1" to enable subsearch (search from within current results) and root="1" to enable rootsearch (search form current album and its sub albums). To start the search from a certain album root use root="#123", where 123 is the album id. Additionally the shortcode attribute landing="123" can be used to specify a landing page id (123 in this example).
calendar Displays a calendar. For more info see the calendar documentation page
Miscellaneous type specifications:
url An image url Returns the url of a specified photo id. Examples:
[wppa type="url" photo="4711"]
and
[wppa type="url" photo="#potd"]

Example use in template (php):
echo '<img src=".do_shortcode('[wppa type="url" photo="12"]')." />';
This is equivalent to
echo '<img src=".wppa_get_hires_url(12)." />';
but you can use photo="#potd" in the shortcode version.
Example use in page content:
<img src='[wppa type="url" photo="#potd"]' />
In real life:
Note the single quotes in the src attribute of img.
Another example:
<a href='[wppa type="url" photo="12"]' target="_blank" >Nice photo</a>
In real life: Nice photo
acount Prints the number of albums Examples:
type="acount" album="13" Prints the number of child-albums of album number 13.
type="acount" parent="13" Prints the total number of (grand)child-albums of album number 13.
Note that album and parent can only be a single album id number here.
pcount Prints the number of photos Examples:
type="pcount" album="13" Prints the number of photos in album number 13.
type="pcount" parent="13" Prints the total number of photos in all (grand)child-albums of album number 13.
Note that album and parent can only be a single album id number here.
share Shows the share box for the page/post Example:
[wppa type="share"] displays:
version Shows the version of wppa you run Example:
[wppa type="version"] prints: 9.2.01.003
lastupdate Shows the date of last upload in an album or systemwide when the album spec is omitted Example:
[wppa type="lastupdate" album="66"] prints: 8 février 2018

Album specifications

Album Description Remarks
Physical album specifications:
13 Album id The id of the album to be used for the type of display requested by the type attribute.
2.3.7.10 Emumeration An emumeration of album id's like 2.3.7.10
34..38 A range A range like 34..38. Make sure the first number is less than the second number.
2.6.8.19..24.7.58 A combo Any combination of enumaration(s) and range(s)
$albumname Album name preceeded by a $ sign

The name of the album to be used for the type of display requested by the type attribute. When using qTranslate make sure the name language matches the page language.
This method is discouraged, changing the name of the album will cause the album not being found
#last Last album The most recently added (youngest) album.
#last,0,1 Last modified The most recently modified album. This is most likely the album that has the most recently uploaded photo.
#last,p,k Last modified from parent The k most recently modified albums with parent album p, where p and k are positive integer numbers. These are most likely the albums that have the most recently uploaded photos. Parent p may also be an album name preceded by a $ sign.
#cat,cat1,cat2,cat3 Categories AND A list of physical albums that have the categories cat1 and cat2 and cat3. Can be used to display album covers or photos in any display type.
#cat,cat1;cat2;cat3 Categories OR A list of physical albums that have the categories cat1 or cat2 or cat3. Can be used to display album covers or photos in any display type.
Virtual album specifications:
#topten[,n[,m[,medals]]] A virtual album containing the highest rated photos.
May optionally include albumnumber (n, 0 for systemwide) and number of photos(m),
use 0 for the default as defined in the Settings admin page; add 3rd attribute medals to display only top photos with medals.
You can select the way the top photos are defined - by mean rating, rating count or view count - in Basic settings -> Rating -> I -> Item 32: Top criterium.
Example: [wppa type="thumbs" album="#topten,0,4,medals"]
Shortcode ReferencePhotos les mieux notées
2223
Médaille de bronze
Aivazovsky-1835 (wl)
View of the Coast Near St. Petersburg
Camera info
Views: 2550 times
Non disponible
Notes: 4.83
2550 vus
1900
Médaille de bronze
image01 (opajaap)
Notes: 4.46
4 commentaires
23446 vus
671
Médaille de bronze
(opajaap)
Notes: 4.46
8736 vus
2309
Médaille de bronze
183836304.jpg (imranansari)
Camera info
Views: 654 times
Non disponible
Notes: 4.38
654 vus
#lasten[,n[,m]] Recent A virtual album containing the most recently uploaded photos. May optionally include albumnumber (n, 0 for systemwide) and number of photos(m) if not the default as defined in the Settings admin page.
Example: [wppa type="thumbs" album="#lasten,0,6"]
Shortcode ReferencePhotos chargées récemment
5054
Schermafbeelding 2026-01-24 113255 (Jaap Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Screenshots/Schermafbeelding-2026-01-24-113255.png
396 vus
5053
Server error Reiner (Jaap Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Screenshots/Server-error-Reiner.png
164 vus
5052
Edit photo info (Jaap Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Screenshots/Edit-photo-info.png
172 vus
5050
Edit bp menu (Jaap Breetvelt)
1668 vus
5051
The users albums display (Jaap Breetvelt)
1619 vus
5049
 PREMIER 
reiner-grinzen-hut (Reiner)
142 vus
#comten[,n[,m]] Commented A virtual album containing the most recently commented photos. May optionally include albumnumber (n, 0 for systemwide) and number of photos(m) if not the default as defined in the Settings admin page.
#featen[,n[,m]] Featured A virtual album containing a random choice of featured photos. May optionally include albumnumber (n, 0 for systemwide) and number of photos(m) if not the default as defined in the Settings admin page.
#tags,tag1,tag2,tagn Tagged AND A virtual album containing photos that are tagged with tag1 and tag2 and tagn.
#tags,tag1;tag2;tagn Tagged OR A virtual album containing photos that are tagged with tag1 or tag2 or tagn.
#all All A virtual album containing all photos in the system.
#related[,tags|,desc[,nn]]
A virtual album containing photos that are related to the content of the page/post.
Specification: tags (default) or desc, and optional maximum number of photos to find ( nn ).
If tags is specified, wppa+ searches photos that have tag(s) equal to word(s) in the text of the page/post.
If desc is specified, the description of the photos is searched for words matching words in the page/post.
Example: [wppa type="thumbs" album="#related,tags,3"]

40foot

Standard-Fotoalbum für 40foot
4899
 PREMIER 
Vues : 230

admin

Default photo album for admin
4839
Vues : 1187

airbase1

Default photo album for airbase1
3221
 PREMIER 
Vues : 1511

AKCarlow

Default photo album for AKCarlow
4822
 PREMIER 
Vues : 341

Anizars

Album par défaut pour Anizars
4641
 PREMIER 
Vues : 250

benediweb

Default photo album for benediweb
5001
 PREMIER 
Vues : 286

chychelo

Default photo album for chychelo
4587
Vues : 1425

denfr

Default photo album for denfr. Some photos from french riviera
3830
 PREMIER 
Vues : 316

digifoto4you

Default photo album for digifoto4you
3193
Vues : 1703

donbar

Default photo album for donbar
4838
 PREMIER 
Vues : 616

dove

Default photo album for dove
5046
 PREMIER 
Vues : 206

EdG

Default photo album for EdG
4749
Vues : 370

Eldoradomedia

Default photo album for Eldoradomedia
5030
 PREMIER 
Vues : 501

Elger

Default photo album for Elger
3817
Vues : 430

encrimi

Compliments for this plugin
4688
 PREMIER 
Vues : 351

FatDash

Default photo album for fatdash
4686
Vues : 1141

haween

Default photo album for haween
4922
 PREMIER 
Vues : 72

howiulf

Default photo album for howiulf
3203
Vues : 4814

imranansari

Default photo album for imranansari
2308
Vues : 1424

Jaap Breetvelt

Default photo album for Jaap Breetvelt
5048
Vues : 888

Jagwaugh

Default photo album for Jagwaugh
4701
Vues : 371

Jan50

Default photo album for Jan50
3182
Vues : 652

japio

Default photo album for japio
4958
Vues : 1312

japortela

Default photo album for japortela
4869
Vues : 689

John Demo

Default photo album for John Demo
4251
Vues : 2412

KevinA

Default photo album for KevinA
4821
Vues : 3231

Kiekie

Standaard album voor Kiekie
4772
Vues : 11642

Knucki

Default photo album for Knucki
3792
Vues : 802

Martin

Standaard album voor Martin
4617
Vues : 1444

Mary Demo

Default photo album for Mary Demo
3177
Vues : 714

mauhashi

Default photo album for mauhashi
2259
Vues : 599

michel

Album par défaut pour michel
4905
Vues : 1084

migrator

Default photo album for migrator
5039
 PREMIER 
Vues : 580

muraliananth

Default photo album for muraliananth
4882
 PREMIER 
Vues : 210

petro23

Default photo album for petro23
2292
 PREMIER 
Vues : 289

phildef

Default photo album for phildef
2257
 PREMIER 
Vues : 239

photographer

Default photo album for photographer
3769
 PREMIER 
Vues : 211

Pietje Puk

Default photo album for Pietje Puk
4966
Vues : 200

pil91

Album par défaut pour pil91
4609
Vues : 1748

Reiner

Default photo album for Reiner
5049
 PREMIER 
Vues : 142

reneesanguinetti

Default photo album for reneesanguinetti
4849
 PREMIER 
Vues : 417

sarah

Default photo album for sarah
3218
Vues : 1109

snackpacks42

Default photo album for snackpacks42
4907
Vues : 427

Steven M-S

Default photo album for stevenm-s
4639
Vues : 529

sunil

Default photo album for sunil
2255
Vues : 466

tim carter

Edited photo album for tim carter
4785
Vues : 11742

translator

Default photo album for translator
4711
 PREMIER 
Vues : 1847

trostmd

Default photo album for trostmd
4840
 PREMIER 
Vues : 356

wingy

Default photo album for wingy
4764
Vues : 508

Example: [wppa type="thumbs" album="#related,desc,6"]
Aucune photo apparentée trouvée.
#owner,username[,parent] A virtual album containing all albums owned by username.
If parent is specified, only the sub-albums of that parent will be selected, if parent is omitted, only top-level albums owned by username.
This shortcode may show album covers (type="cover") or photos (type="album"). If username is #me, the currently logged in user is assumed.
Parent album may also be an album name preceeded by a $ sign or an enumeration of album numbers (e.g. 3.5.7..11).
Example: [wppa type="cover" album="#owner,#me,$Members"]
#upldr,username[,parent] A virtual album containing all photos uploaded by username.
If parent is specified, only the photos uploaded by the user out of the parent albums(s) and their sub-albums are shown.
If username is #me, the currently logged in user is assumed. Parent album may also be an album name preceeded by a $ sign or an enumeration of album numbers (e.g. 3.5.7..11).
Example: [wppa type="thumbs" album="#upldr,kimmy"]
Shortcode ReferencePhoto de Kimmy Breetvelt
4950
Bob-75 (Kimmy Breetvelt)
318 vus
4949
Berghe-Cave (Kimmy Breetvelt)
266 vus
4948
Berghe-Crazy (Kimmy Breetvelt)
283 vus
4947
Berghe-Dream (Kimmy Breetvelt)
270 vus
4946
Brian-04 (Kimmy Breetvelt)
297 vus
4945
Berghe-Cloud (Kimmy Breetvelt)
308 vus
4944
Berghe-Vision2 (Kimmy Breetvelt)
284 vus
4943
Berghe-Sky2 (Kimmy Breetvelt)
250 vus
4942
Berghe-Haiku (Kimmy Breetvelt)
299 vus
4941
Berghe-Bizzar2 (Kimmy Breetvelt)
305 vus
4940
Berghe-Crazy (Kimmy Breetvelt)
319 vus
4902
Solitare-bug (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Solitare-bug.PNG
286 vus
4861
Flower-61086 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Flower-61086.jpg
533 vus
4857
Flower-50126 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Flower-50126.jpg
552 vus
4856
Flower-55530 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Flower-55530.jpg
560 vus
4855
Flower-51862 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Flower-51862.jpg
470 vus
4854
Flower-50916 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Bloemen/Flower-50916.jpg
462 vus
4824
0005 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Mijn-subsub/0005.JPG
460 vus
4750
20171002_154932 (Kimmy Breetvelt)
Camera info

https://wppa.nl/wp-content/wppa-pl/Mijn-subsub/20171002_154932.jpg
324 vus
4710
HPIM2496 (Kimmy Breetvelt)
Camera info

Non disponible
Notes: 5.00
548 vus

Photo specifications

Photo Description Remarks
4711 A number The id of the photo to be displayed
$photoname The photo name preceeded by a $ sign The name of the photo to be displayed. When using qTranslate make sure the name language matches the page language.
#last Last photo The most recently added photo
#potd Photo of the day The photo of the day as defined by the settings on the Photo ALbums -> Photo of the day admin page


Remark: If the type of display is set to a slideshow type, you can supply both an album and a photo. In this case the slideshow will start at the specified photo. The photo must be in the album, and the slideshow should be set to start still at first for this to have effect.