Featured Posts

Austria Woothemes TripAustria Woothemes Trip So...I haven't posted for a while, but here I am in the snow in Austria on holiday with the Woothemes crew! Check out more of our adventures at the Woo on the Slopes site....

Readmore

How to Domain Map with WordPress MuHow to Domain Map with WordPress Mu So recently I had to implement 2 sets of sites using WordPress Mu (multi-user) and one of the requirements (for both sites) was to be able to domain map the sub-sites, much...

Readmore

Filter your WordPress RSS FeedFilter your WordPress RSS Feed I was working on a project last week and needed to use the categories in WordPress to seperate content, but also needed to provide an RSS Feed of only one of the 2 categories....

Readmore

It's Official - Woothemes!It's Official - Woothemes! Well, I have some pretty serious and exciting news to share...I have decided to take up a position at Woothemes! This is a fantastic opportunity and am really grateful to...

Readmore

WordPress JQuery AccordionWordPress JQuery Accordion So I've been tinkering with JQuery this weekend and have built a function for WordPress to display a JQuery accordion of a certain number of posts from a certain category...

Readmore

Jeffikus Rss

WordPress JQuery Accordion

Posted on : 17-10-2009 | By : jeffikus | In : Development, Fun, PHP, Projects, WordPress, prototype

5

So I’ve been tinkering with JQuery this weekend and have built a function for WordPress to display a JQuery accordion of a certain number of posts from a certain category – Title and Excerpt details.
It also can be used across both pages and posts using a shortcode.
Update – I have built a WordPress plugin to run this function and shortcode, and have created its own page here for download and instructions.


Comments (5)

Hello Jeff

I do not see anything new you have done – basically you have taken JQuery (which does all the work for you) and applied it to WordPress. Kind of like connecting a trailer to your car. You far from built the trailer from scratch…

Rather stick to wordpress themes ;)

Hi Alistar
Thanks for the candid comment :-) always appreciate it – but yes, the idea was to keep it simple. Nothing fancy – jquery does all the hard work for me. In all fairness this was built for a specific purpose/request so hopefully someone will find it useful. The only thing it really is useful for at the moment is for someone not using jquery in their theme. No plans to add it to the wordpress repo, unless I have time to build most of the extra stuff I *wishlisted* :-) oh, glad I could provide you with a trailer :-P

Can you expand this? I don’t really get the idea where to put the code:

3. Use the shortcode [jqueryaccordion posts="3" category="Featured"] in your posts to display the accordion

In WordPress if you Create a New Page or Post or Modify an existing Page or Post in the actual text of the page, even if you are using the Visual Editor you drop in or write in (literally)

[jqueryaccordion posts="3" category="Featured"]

The accordion panels will visually display in the text of that Page or Post when you click the Update button.

If you make the number “6″ you will see six accordion tabs. Instead of “Featured” you can type in another existing Posts category.

Hi,

This plugin was very useful for my site , but i have small issue .. If i click tab the content space is overflow (ie .. The hieght of content pane is 64333px default..how to i stop it …

Thanks,

kannan

Write a comment