How do I create a custom wordpress slideshow plugin? I’ve been looking for the tutorials on google but I couldn’t find one, would you guys mind giving a tutorial here or link to some other custom slideshow plugin tutorials?
Leave a Reply
You must be logged in to post a comment.
If you don’t mind using a jQuery plugin, rather than write it from scratch, might I suggest
.cycle()
.I’m going to assume you are not familiar with the WP loop either. If you’re not you really should check out the WP Codex (here).
PHP – (put this in functions.php)
replace ‘hook_name’ with the hook where you want to plug in the slideshow.
replace ‘page_name’ with the slug of the page where you want the slideshow to appear. If you want it to show up on all pages, remove the
<?php if(is_page('page_name')) : ?>
and the<?php endif; ?>
at the end.replace ‘my-slideshow’ in
$my_query
to the name of the category that you want in the slideshow.You can change ‘5’ to any number of slides you want to show in the slideshow.
the_post_thumbnail
is the featured image of the post. It is checking if the post has a featured image, if not, it relys on default.png found in the theme’s images folder.jQuery – (put this in its own file in the theme dir in a /js dir. Call the file slideshow.js)
There are many options you can define found here.
This pretty much sums up the custom slideshow. If you want to package it up as a modularized plugin you will want to reference the Codex here.
i think if you have wordpress knowledge, then just simple modify
header.php
file from your template folder.Here are some useful links:-
http://www.dynamicwp.net/articles-and-tutorials/20-beautiful-wordpress-slideshow-plugins/
http://www.hongkiat.com/blog/free-wordpress-slideshow-gallery-plugin/
http://wordpress.org/extend/plugins/combo-slideshow/
http://wordpress.org/extend/plugins/tags/slideshow
http://desizntech.info/2011/04/most-useful-slideshow-plugins-for-wordpress/
Good luck..