WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Featured Heroes Slideshow

Put a slideshow on any page with a shortcode; provides a new content type "Heroes" to manage your featured slides.

How do I insert an image?

Set the image you wish to use as the featured image for your Hero

What is the shortcode?

Use the following format (defaults indicated here):

[abt_slider_hero
    fx="fade"
    width="100%"
    height="400px"
    order="asc"
    orderby="menu_order"
    speed="600"
    timeout="7000"
    classes=""
    postType="heroes"
    style="photo"]

where

  • fx = the cycle transition effect (fade, scrollUp, shuffle, etc) - see jQuery Cycle homepage for more information
  • width = width of the slide
  • height = height of the slide
  • order = sorting order (asc/desc) for the fetched items
  • orderby = how to sort the fetched items
  • speed = transition speed from one slide to the next
  • timeout = delay between slide changes
  • classes = optional classes to apply to the slideshow
  • postType = you can retrieve other content types than "heroes" if desired
  • style = normally the thumbnail navigation just reuses the full-size image, but if you want to "control" the quality of the shrunken thumb specify an alternate image size (like "thumbnail")

Pretty much all of the attributes are optional, so all you need is:

[abt_slider_hero]

How do I put a slideshow in code?

You can call the slideshow in code using abt_featured_heroes::embed( array $atts ), where $atts is an array matching the shortcode attribute list.

Can I change the defaults?

Only one simple hook available:

  • add_filter('abt_featured_heroes_localize', YOURFN); change the base javascript variables used by the flipwall init script:
    • stylesheet: replace the default stylesheet with your own to change the default appearance of slides
    • speed: change the transition speed (from 600 ms)
    • timeout: change the slide delay (from 7000 ms)
    • fx: change the slide transition (from 'fade')
    • style: optionally use actual thumbnail photos for navigation, instead of reusing full-size images (default 'photo', alt 'thumbnail')
    • width: default width (from 100%)
    • height: default height (from 400px)

How to put shortcode in widget?

Use a filter to apply shortcode processing to widgets.

Filter: <?php add_filter('widget_text', 'do_shortcode'); ?>

Developer Bonus

Includes a WP "content type" class to make creating content types easier. Not as generic/refined as the one in the WP-Dev-Library plugin, but feel free to use it as a starting point.

Suggestions/improvements welcome!

Requires: 2.8 or higher
Compatible up to: 3.3.3
Last Updated: 2012-5-22
Downloads: 2,407

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.