Integrating a Horizontal Accordion

After a lot of searching and experimentation with Horizontal Accordion plugins I settled on Easy Accordion. It lives up to its name when it comes to configuration and the website includes several different examples and all the html and css details you need.

I particularly like the fact that Easy Accordion can rotate regular post titles where a lot of its competitors rely on individual images. Although it’s not packaged as a WordPress plugin, this rotation feature and its general markup make it pretty easy to integrate.  I opted to create a category for the posts I wanted to show in the accordion and display the result using a special page template. In my template the loop is replaced by this:

The script at the beginning delays the visibility of the containing div just to give the script a chance to set up the title rotations.

The dt and dd elements have id tags so that they can be styled individually if needed.