If you’ve been following my blog, you’ve seen that I’ve been rebuilding JoshRichet.com as a tool for teaching my class about WordPress. Sometimes creating a great plugin for your WordPress site takes a little rough groundwork laid out by someone with a little more experience. This plugin was intended to be a rough framework for building image-based plugins that insert into WordPress themes or pages easily.

This plugin provides one admin-controlled Zurb Foundation Orbit Slider for your template and assumes that your theme already includes Zurb Foundation like the parent theme used as an example in my classroom.

This plugin provides the WordPress shortcode [jr_custom_slider], and  the PHP function, bg_header_slider() so that it can be inserted into a template or a page with one line.

in a post or page simply insert the following:

In a theme to get the same output as the shortcode, insert the following:

Here is the plugin code: