Beschrijving
Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.
A Random Number
Beschrijving
The shortcode [arandomnumber] can be added to any post, page, or widget as many times as needed to display a random number. The number has a default range of 1 – 100, but can be changed using the min and max attributes, like so:
[arandomnumber min=1 max=10000]: This will output a random number between 1 and 10,000. (Like this: 8,014)
[arandomnumber min=-500 max=-1]: This will output a random number between -500 and -1. (Like this: -232)
[arandomnumber min=50000000 max=60000000]: This will output a random number between 50,000,000 and 60,000,000. (Like this: 56,449,060)
etc.
If you wish to disable commas, use the comma=no attribute, like so: [arandomnumber min=100000 max=999999 comma=no]. This will output a random number within the range without the commas, like this: 456245.
Installatie
- Upload the plugin files to the
/wp-content/plugins/a-random-numberdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress
- Use the shortcode to display your magic number.
FAQ
Why does this plugin exist? It seems kind of pointless?
How dare you. It outputs a random number, so if you need a random number, there is nothing better. This is also useful to check if a page is being cached or if your server is properly loading since the number will change on every page load. Use it to add random parameters to forms, urls, etc.
See? That’s practical.
Beoordelingen
Bijdragers & ontwikkelaars
“A Random Number” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “A Random Number” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.2
- Updated to the latest WordPress version.
1.1
- Added comma attribute to remove commas if needed.
- Released August 19, 2017
1.0
- Launched A Random Number into the Internets. It’s alive!
- Released January 8, 2016



