[nivo] shortcode for the responsive jQuery "Nivo slider" for posts, pages, attachments and custom post types using oik
[nivo] shortcode for the jQuery Nivo slider; “The Most Awesome jQuery Image Slider”; reputed to be the world’s most popular jQuery image slider.
Note: The format parameter was first made available for the [bw_pages] shortcode and is also supported in [bw_cycle]; both part of the oik base plugin.
See also Nivo Slider for more information about the jQuery Nivo code.
Note: oik-nivo-slider is dependent upon the oik plugin.
You can activate it but it will not function correctly unless the pre-requisite version of oik is also activated.
Download oik from
oik download
If you want to read more about the oik plugins then please visit the
oik plugin
“the oik plugin – for often included key-information”
Note: oik-nivo-slider is dependent upon the oik plugin. You can activate it but it will not work unless oik is also activated.
Download oik from
oik download
Nivo slider - default theme [nivo]
Nivo slider - bar theme [nivo theme=bar]
Nivo slider - dark theme [nivo theme=dark]
Nivo slider - light theme [nivo theme=light]
Nivo slider - oik theme - not hovered over [nivo theme=oik ]
Nivo slider - oik theme - image hovered over
Nivo slider - oik theme - caption hovered over
Nivo slider - default271 theme [nivo theme=default271]
Nivo slider - orman theme [nivo theme=orman]
Note: oik-nivo-slider is dependent upon the oik plugin.
You can activate it but it will not work unless oik is also activated.
Download oik from oik download
If you simply want to show all the attached images to a page, post or custom post type then use
[nivo]
You need to activate both the oik-nivo-slider plugin and the oik base plugin. The [nivo] shortcode only becomes functional when [oik] is loaded.
The most common fixes to this problem are:
The basic parameters that control the display of the Nivo slider are:
[nivo theme="default|bar|dark|light|oik|orman|pascal|default271|oik271 - Theme for the slideshow" link="y|n|file|full - Link the images to the target post/page or media file" caption="y|n - Display the image title as the caption" ribbon="y|n - Display the ribbon, if the theme supports it (version 271 only)" thumbnail="full|thumbnail|medium|large|nnn|wxh - image size" class="|classes - CSS classes" thumbs="|n|y - thumbnail navigation" effect="random|sliceDownRight|sliceDownLeft|sliceUpRight|sliceUpLeft|sliceUpDown|sliceUpDownLeft|fold|fade|boxRandom|boxRain|boxRainReverse|boxRainGrow|boxRainGrowReverse|slideInLeft|slideInRight ]
There are three methods.
If your slide show is created from attached images then use the oik custom image link URL field in the Add Media dialog to set the target for the link.
Alternatively build the slideshow dynamically from images attached to related content.
Use the post_type parameter to specify the content type and
or other selection criteria for other content types
[nivo
post_type=”post_type – Post type to display”
post_parent=”|ID – Parent ID to use if not current post”
]
[nivo format=”L”
]
[nivo format="T/C" ]
[nivo
post_type=”attachment|post_type|special:value – Post type to display”
theme=”default|custom|bar|dark|light|oik|orman|pascal|default271|oik271 – Theme for the slideshow”
class=”|classes – CSS classes”
link=”y|n|file|full – Link the images to the target post/page or media file”
caption=”y|n – Display the image title as the caption”
ribbon=”y|n – Display the ribbon, if the theme supports it”
thumbnail=”full|thumbnail|medium|large|nnn|wxh – image size”
thumbs=”|n| y – Thumbnail navigation”
nav=”|n| y – Control navigation”
pause=”|pause – Pause time in milli seconds”
manual=”|n| y – Manual advance”
effect=”random|sliceDownRight|sliceDownLeft|sliceUpRight|sliceUpLeft|sliceUpDown|sliceUpDownLeft|fold|fade|boxRandom|boxRain|boxRainReverse|boxRainGrow|boxRainGrowReverse|slideInLeft|slideInRight – transition effect”
numberposts=”5|numeric – number to return”
offset=”0|numeric – offset from which to start”
category=”|category-id – category IDs (comma separated)”
category_name=”|category-slug – category slugs (comma separated)”
customcategoryname=”|category-slug – custom category slug”
orderby=”date|ID|title|parent|rand|menu_order – Sort sequence”
order=”DESC|ASC – Sort order.”
include=”|id1,id2 – IDs to include”
exclude=”|id1,id2 – IDs to exclude”
meta_key=”|meta key – post metadata key”
meta_value=”|meta value – post metadata value”
post_mime_type=”|image|application|text|video|mime type – Attached media MIME type”
post_parent=”|ID – Parent ID to use if not current post”
post_status=”publish|pending|draft|auto-draft|future|private|trash|any – Post status”
id=”|IDs – IDs of posts to display”
]
NO. You can enable the oik TinyMCE shortcode or quicktag buttons. See oik options > Buttons.
When editing a post/page with TinyMCE or the HTML editor click on the shortcode button to see a list of ALL enabled shortcodes and get syntax help, where available.
The oik Nivo slider is developed using the OIK (Often Included Key Information) API (Application Programming Interface).
If you don’t have the OIK plugin installed and activated then the Nivo slider shortcode won’t work.
Specifically, the code is dependent upon bw_get_posts() to obtain the list of attachments, posts, pages or custom post types
which populate the slider and bw_thumbnail() to select the image to display when it’s not an attached image.
The default image size is thumbnail=full.
At present the bw_thumbnail() function will only return an image for a particular post id
when there is an attached image; it won’t find the featured image. As a workaround either specify the thumbnail parameter as small,medium,large or your preferred size (e.g. 150×100)
OR ensure that the image you want to display is attached to the post
OR exclude the post from the list ( exclude=id1,id2 )
NO, not any more.
If you use any one of the five themes associated with jQuery Nivo version 3.1 then the images can be different sizes.
Warning: you might not like the results though.
YES. Use the Nivo slider settings page.
This is planned for a future version.
YES. You can use the [nivo] shortcode in sidebars, headers and footers by using a text widget.
It’s just like entering the shortcode into a post, page or custom post type.
Remember you may need to set the post_parent parameter to control which posts are loaded.
Not directly. In order to get the shortcode to expand you need to wrap it in some php.
One way of achieving this is to code
The plugin includes multiple versions of the FREE jQuery Nivo slider from Dev7 Studios
* Version 3.2 is the latest version producing responsive slideshows.
* oik-nivo-slider continues to support the themes for version 2.7.1: default271, orman, pascal and oik271
YES… from oik-nivo-slider version 1.9
YES… from oik-nivo-slider version 1.7 with oik 1.17 or higher
Thumbnail navigation is supported from version 3.1 of the nivo jQuery code.
YES… Use the effect= parameter e.g. [nivo effect=boxRain]
I have not tried Nivo’s plugin.
YES. Basic support for images in NextGEN galleries has been added in version 1.18
You need to use a special post_type parameter
e.g.
[nivo post_type=nggallery:1]
oik-nivo-slider has built in support for:
YES. See oik-nivo-slider