Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

What is the best way to display collapsible elements on a page? WordPress

  • SOLVED

A plug in would be preferred as my php knowledge is not good.

I have a list of resource categories on a page and want each title to expand and show further resources in that category.

thanks
Steve

Answers (4)

2012-05-17

Dan | gteh answers:

Use wp_list_pages or wp_nav_menu to control what is displayed.

See: http://codex.wordpress.org/Function_Reference/wp_list_pages and http://codex.wordpress.org/Function_Reference/wp_nav_menu

Each of them generates classes such as .current_page_item which you can use to control various levels.


Steve Watson comments:

Will either of those work on a the items on a page like this. The items i want to exand are in the page content not the navigation bar.

http://184.172.177.95/~chinad/?page_id=435

Thanks

2012-05-17

Ross Wilson answers:

I have used the first plugin on this page before to show an according style menu and it was very easy to configure. I believe you could place the menu anywhere with a shortcode. The other two plugins are interesting and come from the same developer.
[[LINK href="http://www.designchemical.com/blog/index.php/wordpress-plugins/choosing-a-vertical-menu-wordpress-plugin-for-your-site/"]]vertical menu plugins[[/LINK]]

2012-05-17

Francisco Javier Carazo Gil answers:

You want something like this: [[LINK href="http://jqueryui.com/demos/accordion/"]]http://jqueryui.com/demos/accordion/[[/LINK]]

You can use it directly in your theme. If you want more info ask.

2012-05-18

Arnav Joy answers:

i am not sure what you are asking for but have a look in this plugin..
http://wordpress.org/extend/plugins/thethe-tabs-and-accordions/