Accordion the new wordpress ajax widget to enhance your sidebar functions

The biggest advantage of this plugin is that, it loads your wordpress site faster than before, it saves huge space, provides tabbed browsing inside your sidebar.
A widget which displays the output of other plugins, using the Accordion the jQuery plugin.
You can download the widget from here, and configuration and the installation instruction are packed in the zip file. This wordpress widget is very easy to configure.
This widget can take the output of up to six plugins. The plugins need to generate <li> items.
To install, upload the 'accordion' directory to the wp-content/plugins directory of your wordpress setup, then go to the wordpress admin panel, under 'Plugins' and activate the 'Accordion' plugin. To configure it further, go to Presentation -> widgets and drag the 'Accordion' widget onto one of your sidebars. Then click the little button on the widget to configure which plugins you'll use.
You'll notice a few controls:
Title - the title of the widget itself (optional).
Widget type - you may choose between using accordion or simple javascript tabs.
Before title and After title - These allow you to style the widget better by using style="" attributes. By default these tags are simply <h3> and </h3>. But you may use, for example: <h3 style="margin: 0; padding: 4px; background-color: blue; color: white"> for Before title.
List type - the type of list you want to be displayed: unordered (with dots) or ordered (with numbers). This is only in case your current theme requires it…
Plugin 1…6 - Click on these tabs to configure each plugin individually: each plugin has a function it calls and a title (which is displayed on its tab).
after configuring at least two plugins, it should be displayed in the sidebar you selected.
Popularity: 23% [?]
- Loving Lexile Learning
- Forensics: More than Meets the Eye!
- Flash Drives Needed to Help Students Save Their Great Work


on November 13th, 2007 at 5:27 pm
on November 14th, 2007 at 6:27 am
on November 14th, 2007 at 12:58 pm
.pngfile instead? For you, it is a huge waste of bandwidth. For us, it makes it download really slowly.PNG files don’t degrade in quality, unlike JPGs, so it is perfectly safe.
on November 14th, 2007 at 4:18 pm
on November 15th, 2007 at 12:36 pm
on November 15th, 2007 at 12:53 pm
on November 15th, 2007 at 1:35 pm
Parse error: syntax error, unexpected $end in /home/spichin2/public_html/wp-content/plugins/accordion/accordion.php(65) : eval()’d code on line 1
Any help would be appreciated! Thank you.
on November 15th, 2007 at 1:50 pm
Sorry, but you need to explain this more clearly. I click on “Plugin 1,” etc. and nothing happens. What is the plugin supposed to do at that point and what information am I supposed to add? For instance, I want to use this to display my most popular articles using Alex King’s Popularity Contest plugin. So how should I do that? Step-by-step instructions are required.
Thanks.
on November 15th, 2007 at 2:06 pm
on November 15th, 2007 at 3:08 pm
on November 15th, 2007 at 4:03 pm
I’ve got the same problem as Spicy Cauldron, the parse error.
on November 15th, 2007 at 7:29 pm
if you are using brians latest comments you in the function coloumn you need put get_recent_comments(); here again please note, you should not use .
similarly for recent post you use c2c_get_recent_posts(10); that is all. I hope i am clear now.
If you are using php functions with you will get parse error.
Please let me know if there is any other information you require. Sorry for trouble i shall update the read me file accordingly.
regards
daya
on November 15th, 2007 at 8:33 pm
I’m going to use
- FreePress recent comments widget
- WPG2 grid box to display recent pictures
- Recent posts widget that is built-in inside WordPress.
Thanks a lot!
on November 15th, 2007 at 11:05 pm
on November 16th, 2007 at 7:38 am
Parse error: syntax error, unexpected T_STRING in /home/hopefulspirit/public_html/wp-content/plugins/accordion/accordion.php(64) : eval()’d code on line 1
on November 16th, 2007 at 5:39 pm
http://gohil.dharmesh.googlepages.com/ajax.html
on November 16th, 2007 at 10:29 pm
I always supply demos for my themes, not sure if you could do the same for your plugins?
good work anyway,
jez
on November 17th, 2007 at 2:20 am
on November 17th, 2007 at 9:18 am
Thanks - Scott
on November 17th, 2007 at 9:54 am
Scott, if you the read the usage in Brians Recent comments, you will see instruction to call the plugin as follows
< ?php blc_latest_comments(); ?>
but, here in Accordion all that you need put in the function field is blc_latest_comments that is all, rest the plugin does automatically.
FKI please update your wordpress to lattest version, and its automatically provides widgets support.
JEZ you can see the demo right in this blog. I use all the plugin i have developed right here.
on November 17th, 2007 at 9:55 am
on November 18th, 2007 at 4:33 am
Parse error: parse error, unexpected $ in
/wp-content/plugins/accordion/accordion.php(64) : eval()’d code on line 1
like others
i tried a lot of thing ! HELPPPPPPPP plz
on November 18th, 2007 at 10:02 pm
on November 18th, 2007 at 11:58 pm
thanks a lot for your help
on November 19th, 2007 at 12:18 am
on November 19th, 2007 at 12:23 am
nemuritor_de_foame: or
nemuritor_de_foame: blc_latest_comments(10);, but brians lattest comments seems to be displaying latest commented posts. so if you could let me know the plugin you are actually using, i guess, i could be more helpful.
on November 19th, 2007 at 12:31 am
Plugin Name: Recent Comments
Plugin URI: http://mtdewvirus.com/code/wordpress-plugins/
Description: Retrieves a list of the most recent comments.
Version: 1.18
Author: Nick Momrik
Author URI: http://mtdewvirus.com/
the begin of this files is :
if (function_exists(’mdv_recent_comments’)) {
}else{
but if i put mdv_recent_comments in function field in your plugin it doesn’t work
on November 19th, 2007 at 11:06 am
on November 19th, 2007 at 4:40 pm
on November 19th, 2007 at 4:58 pm
grrrr
on November 19th, 2007 at 6:53 pm
on November 19th, 2007 at 7:30 pm
I’d like to show posts from a category into a Tab (maybe video) and other posts from another cat into another Tab (photo).
Tnks
on November 20th, 2007 at 12:26 am
on November 20th, 2007 at 2:19 am
on November 28th, 2007 at 12:37 am
Is there a way to know precisely, the call for ANY other plugin we wish to use with Accordian? You have done a great job of documenting some plugins calls (thanks), but it would be good to know how to call ALL plugins in the proper way so they will work within Accordian.
Thanks, Scott
on November 29th, 2007 at 8:49 am
Thanks for your comments, It is very simple. If you read the documentation of the plugin you wanted to use you will defined find the php code to be used under usage section. Normally it would be something like this “” in this all that you need to do is that to, remove “” in the end use the rest as function slot of the accorditon plugin management. i.e you will simply use get_recent_comments();. similarly for any plugin you can do the same.
on December 2nd, 2007 at 5:02 am
It’s great
on December 2nd, 2007 at 5:45 pm
Great!
on December 3rd, 2007 at 8:30 am
Cool!
on December 5th, 2007 at 11:05 pm
Cool!
on December 6th, 2007 at 2:48 pm
thankiossp!
on December 7th, 2007 at 11:39 pm
on December 8th, 2007 at 10:09 am
on December 11th, 2007 at 5:21 am
on December 12th, 2007 at 1:05 am
on December 15th, 2007 at 5:14 am
I got the the pages to show with wp_list_pages(); but for some reason I can only get the tabs working, the accordion (which is what I what) is not working http://www.spatialdesign.ac.nz/blog. it just list the pages, not accordioned. I have another WP site and it works fine
there (www.apelosi.com/blog) any help would be great
thanks
on December 15th, 2007 at 10:24 am
also am having problems adding “meta” to the menu as well, do you know what the code for that is
thanks so much for a great plugin
on December 20th, 2007 at 3:16 am
which stops the accordion action working, tabs still works. the all pages are shown.
on December 21st, 2007 at 4:51 pm
if you still have problem let me know, i will edit the next gen for you.
on January 8th, 2008 at 3:38 am
on January 8th, 2008 at 3:45 am
on January 10th, 2008 at 7:55 pm
I have searched all of the files and i cannot find a control for this or overide it, ..please help…
http://www.mogmachine-hosting.com/drh/
(click on ‘Artland’ on the left)
on January 11th, 2008 at 11:48 pm
It is very simple, you need to choose, the next gen gallery to choose the jquery effect not the light box effect, i have integrated next gen gallery along with accordion, in my another blog and it is working fine http://blog.19hourit.com
please check.
on January 12th, 2008 at 12:00 am
on January 13th, 2008 at 12:52 am
http://www.mogmachine-hosting.com/drh/
Look in the source code at line 131:
<div id=”accordiondiv”><h2>Artland</h2>
…after this is an empty <div> tag that when you click on the ‘Artland’ menu item expands to contain the <ul> with the menu items in it.
If you look at this <div tag> in firebug you can see that something (i assume javascript) has added data to it so it becomes:
<div style=”height: 280px; display: block;”>
I just have no idea where the 280px comes from, …and this is what is messing things up as it is forcing much larger than it should be with a height:auto
please tell me where this embedded css is generated from as i cannot find it in the JS files.
Thanks.
on January 14th, 2008 at 7:35 pm
I have narrowed the problem down to :
accordian.php, line 38
The div tag created here is empty of style,. ..but by the time it is outputted to the page it has a height style embedded.
I need to find out where this comes from, …i assume it is in jquery.accordian.pack.js ….but as i cannot read this compressed version i cannot alter it.
Please either send me a modified version that sets the height to ‘auto’ of send me the uncompressed version so that i may mod it.
Your quick response would be appreciated as i need to make this site live soon and this menu is a key part of the functionality.
Thanks.
on January 15th, 2008 at 1:27 pm
on March 11th, 2008 at 4:52 pm
on March 12th, 2008 at 11:34 am
on March 13th, 2008 at 6:02 pm
on March 16th, 2008 at 8:31 pm
I activated the plugin and then I went to configure it in widgets. The message from IE was “Cannot open widgets.php” and I was kicked out of my website…
on March 26th, 2008 at 3:27 pm
on March 26th, 2008 at 3:31 pm
on March 29th, 2008 at 2:14 am
on May 4th, 2008 at 11:52 pm
on May 5th, 2008 at 1:18 am
on June 25th, 2008 at 5:57 pm
on June 26th, 2008 at 9:27 am
“Fatal error: Cannot use string offset as an array in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wordpress-2.5\wp-content\plugins\accordion\accordion.php on line 51″
What should I do? I’m using Wordpress 2.5
on July 18th, 2008 at 8:06 am
thanks.
on July 18th, 2008 at 8:07 am
on July 19th, 2008 at 7:42 pm
if there is any steps in the site itself
on August 3rd, 2008 at 6:07 am
on August 15th, 2008 at 9:00 pm
on August 21st, 2008 at 12:23 pm
on August 21st, 2008 at 11:22 pm
to have more than 6 tabs/accordions open up accordion.php and on line 12 you will see
define(’NUM_PLUGINS’, 6);
just change the 6 to the number of tabs you want.
on September 5th, 2008 at 2:58 am
on September 14th, 2008 at 1:02 am
on September 18th, 2008 at 12:46 am
is there anyway to have active acordion when i’am on some of links inside of accordion. Here si example:
in left sidebar i have 6 panels, when i click on some of categories inside i want to keep open that panel when page loads and showing this category. take a look at first panel here http://www.3dcomputers.net/category/asortiman-proizvoda/racunarske-komponente/maticne-ploce.
Red link show us selected category but first panel is closed.
Thank you for the answer.
on September 22nd, 2008 at 12:11 am
on September 29th, 2008 at 2:29 am
Any ideas?
Additional question/suggestion: is it possible to use “static” content instead of Wordpress functions? e.g. have WP functions on 4 of the tabs and pictures/links on the other two (like having a 125×125 banner in one of the “folds”).
thanks & all best!
on September 29th, 2008 at 5:00 pm
on October 18th, 2008 at 2:00 am
Fatal error: Only variables can be passed by reference in /nfs/c03/h02/mnt/52351/domains/callsouthwest.com/html/wp-content/plugins/accordion/accordion.php(64) : eval()’d code on line 1
Deactivating, reuploading and reactivating plugin does not work. It also breaks the admin interface and shows this error:
?G_OF_TITLE%Title%END_OF_TITLE%
Our Office Information
FAQ
Fatal error: Only variables can be passed by reference in /nfs/c03/h02/mnt/52351/domains/callsouthwest.com/html/wp-content/plugins/accordion/accordion.php(64) : eval()’d code on line 1
Because of that, I cant delete the problem causing function. Is this plugin writing to a specific location in a database I need to delete in order to start over from scratch?
on November 9th, 2008 at 12:15 pm
Just wanted to let you know that this is a GREAT pluggin. Just what I was looking for.
I was able to use “include” and set a race results tabbed widget for my Racing site at http://racingnewsdigest.com.
1 question…..is there a way to have more than 1 widget. Meaning I have the tabbed widget for results, I would like to have a second one for standings and maybe a 3rd one for race schedules….ect.
Is this possible.
Thanks again for a great pluggin!
on November 10th, 2008 at 7:33 pm
on November 11th, 2008 at 3:23 am
Thank you for the information. I was wondering if that was all that needed to be done. I have learned a lot over the last couple of years (starting from zero knowledge) but I did not know if they would conflict with each other or not.
Keep up the great work and thank you!
on November 11th, 2008 at 6:17 am
I thought your suggestion was all that was needed, but I just wasn’t sure.
Thank you for your help!
on November 11th, 2008 at 10:46 pm
But i’d like to know if there is a way to show in the accordion the links I have in my “blogroll” categories, because when i type get_links_list(); in the function area of the pluggin, it doesn’t show me any link in the accordion, just the word “blogroll”… can you help me please? thanks a lot and congratulations!
on December 9th, 2008 at 2:45 am
I have install the plugin on a WP 2.7 RC1 install. When I click on the widgets menu option I get can open the site../widgets.php - Operation aborted.
If I uninstall the plugin the page works as I would expect.
Any thoughts?
on December 31st, 2008 at 1:54 am
your plugin does not display dropdown menus in my sidebar. i only get my unordered page-list. any guesses as to why? seems to be an issue with my theme, but i don’t know what. these menus don’t work when i embed them in pages, either.
demo of problem:
http://laptopacademy.net/wp2/
(see sidebar)
help!
on January 1st, 2009 at 4:45 am
on January 4th, 2009 at 5:31 am
Anyone using both? ..and can spell out the solution to doing so?
All I’m tryin to do is use the ‘thickbox’ with NextGen and use Accordion to shrink my Archives at the same time.
Any help would be great. Thx.
peace,
zOnk.oNe
on January 9th, 2009 at 12:43 am
Can you give me another link to the demo?
Thanks
admixArts
on February 10th, 2009 at 10:13 am
I have problem using your plugin. I have looking from longtime for a plugin like this but now I am very dissappointed.
When I activate your plugin, i cannot visit my WIDGETS Page (…wp-admin/widgets.php)- I mean when I click widgets link under my admin I get the error that “Internet Explorer cannot open the site) and I cannot view my widget list. Now, when I deactivate your plugin, everything goes back to normal.
Please guide, I really want to use your plugin, but with this situation I cannot.
Regards, Satinder
on March 4th, 2009 at 9:37 am