Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm working on a site for a client, which will have a custom post type (homes). I'd like the client to be able to add new posts, which would ideally include multiple pictures, in different 'categories', for each home (i.e. initial construction, finish work, completed home). Each different category would then get its own slider on that 'post'.

I've considered using something like the Premium Slider plugin, which offers multiple sliders, and includes a metabox on each post, but it would definitely need to be modified to fit my requirements.

Any ideas on the best way to go about doing this?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Basics of my approach to sliders:

  1. Query arguments for selection of posts.
  2. Get The Image (plus custom code and caching when needed) to mine for images.
  3. Separate function for markup generation so it could be easily swapped.
  4. Just add JavaScript slider you like. When you like/need another more just swap markup and script.

Of course this approach is better for pre-configured slider or parameters are generated by code and it doesn't need to have manual controls.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.