Usage & Integration

WordPress slideshow gallery plugin usage & integration. There are 2 ways of integrating the WordPress slideshow gallery into your site.

Post/Page Embedding

You can embed a slideshow gallery into any WordPress post/page with the use of the slideshow shortcode. The shortcode can be used without any parameters to display the current post/page gallery images. Alternatively, you can either specify a post_id parameter to display the gallery images of a specific post/page or specify a custom parameter to display your manually added slides in the ‘Manage Slides’ section.

Current post/page gallery images

[slideshow]

Gallery images from a specific post/page

[slideshow post_id=X]

Custom added gallery slides

[slideshow custom=1]

Theme Hardcoding

You can hardcode a slideshow gallery into any of the PHP files of your WordPress theme. The first parameter is a boolean (true or false) value which tells the method whether or not it should output the gallery. Setting it to false allows you to store the output in a variable. Very similar to the shortcode, you can specify a second, post_id parameter to the slideshow method. If you leave the post_id parameter empty, null or false, the custom added gallery slides will be displayed. Here is the PHP code for the hardcoded slideshow gallery.

<?php

if (class_exists(‘Gallery’)) {
    $Gallery = new Gallery();
    $Gallery -> slideshow($output = true, $post_id = null);
}

?>

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • email
  • Live
  • MySpace
  • Ping.fm
  • Reddit
  • Technorati
  • Twitter

Tags: , , , , , ,