Either use the plugin installer built into WP, or:
- Unzip and upload the
deviant-thumbs directory to the /wp-content/plugins/ directory.
- Activate the plugin through the 'Plugins' menu in WordPress.
Widget Usage
- Add one or more Deviant Thumbs widgets to your sidebar.
- Set the desired settings for each widget.
- Enjoy
Template tags
These are meant to be used outside The Loop.
deviant_thumbs()
<?php if (function_exists('deviant_thumbs')): ?>
<ul class="deviant-thumbs">
<?php deviant_thumbs($query = 'your query', $args = 'rand=false&count=10'); ?>
</ul>
<?php endif; ?>
Parameters:
- $query is a search string used on deviantART. Example: by:scribu in:photography
- $args is a string of options for displaying the carousel:
- count is the number of thumbs to display (The maximum is 24). Default: 6
- rand is a flag to randomise thumbs or not. (Can be true or false). Default: true
- cache is the number of hours after which the thumb list has to be updated. Default: 6
- before is a string inserted before each thumb. Default:
<li>
- after is a string inserted after each thumb. Default:
</li>
deviantthumbscarousel
<?php if (function_exists('deviant_thumbs_carousel')): ?>
<?php deviant_thumbs_carousel($query = 'your query', $args = 'count=10&rand=false&id=my_carousel'); ?>
<?php endif; ?>
Parameters:
- $query is a search string used on deviantART.
- $args is a string of options for displaying the carousel:
- count is the total number of thumbs. Default: 6
- show is the number of visible thumbs. Default: 3
- rand is an option to show thumbs in a random order (Can be true or false). Default: true
- cache is the number of hours after which the thumb list has to be updated. Default: 6
- speed is the speed of the sliding effect (Can be fast, normal or slow). Default: fast