Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

wordpress accordion plugin

anyone know of a wordpress accordion that the user can select images for each accordion tab. also when the user refresh the change page the image changes?or any other plugin that you can use to achieve this please?

1 Answer

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

This sounds like something you will have to code yourself. There are tons of accordion plugins and then you can probably write either PHP or JS that displays a random image from a list of possible options or from the post content itself.

hi Zac Gordon can l just start by saying l feel special that you replied to this question. just to verify everything, l can just build on a existing plugin so that it would provide options in the wordpress dashboard to select pictures for each tabs. then with extra code when the user refresh the page a different image would be displayed in the tab. Any special function associated with php or js that l can use or if you can direct me to somewhere to learn how to do this please?