WordPress Plugin: Collapsible Archive Widget

Posted by Ady on Fri, August 10, 2007

▼ A d v e r t i s e m e n t

Update: 20 January 2010: This plugin has not been tested with WordPress 2.9 and may break because 2.9 has internal changes. I am still trying to find time. Sorry for the Inconvenience.

I have written another simple WordPress plugin that simply display a collapsible archive in the sidebar. You can see it in action in the rightmost sidebar of the main page.

When the sidebar loads, it is in collapsed state and can be expanded by clicking the years. It utilizes simple JavaScript that shows and hides a div containing the monthly links. The purpose of this plugin is to save space on the sidebar especially if you have been blogging for a while. It is an alternative to the combo box (select) provided by the default archive widget.

My request for the plugin to be listed in the WordPress Plugin Directory has been pending for a while so for now it can be downloaded here.

The plugin can now be downloaded here.

Configuration:

  • Widget Title: the title of the widget
  • Show post counts for year: Whether or not to show the post number for each year
  • Show post counts for month: Whether or not to show the post number for each month
  • Abbreviate month names: Check this box to show abbreviation of month names
  • Hide year from month names: Do not print year after month names
  • Use script.aculo.us effects: Whether or not to show effects
  • Expand effect: Effect to use when expanding the list
  • Collapse effect: Effect to use when collapsing the list
  • Expand the list by default: Check this box to have the list expanded when loaded
  • Expand current year by default: Check this box to have the current year expanded when loaded
  • Expand current month by default: Check this box to have the current month expanded when loaded
  • Show individual posts: Show posts in the list. This should be used in extra caution; if you have a lot of posts consider disabling it as this will take time to load
  • Use HTML arrows instead of images (► ▼)
  • Show current month in bold: show current month in bold
  • Show a link to plugin page. Thank you for your support! : Display a link to plugin page (this page) as a support method

Current Version: 2.3.1

Installation

Copy the file to the wp-content/plugins/widgets directory and activate it in the Plugins page. Then drag and configure it in the Sidebar Widgets page.

Warning: Will only work on widgets enabled blogs.

TODO (these are being considered but there is no guarantee when they are going to be included)

  • Add ability for multiple instances
  • Add ability to work as non-widget
  • Add ability to include / exclude categories
  • Expand previous month rather the current
  • Research the practicality to use CSS / allow CSS options
  • List posts without year and month headers (for blogs with few posts)
  • Do not list the posts that are listed on the main page

Change Log

  • 03-Aug-2007: Initial version
  • 04-Sep-2007: Added ability to select whether to use abbreviations for the month names, and script.aculo.us effects!
  • 27-Sep-2007: Fixed javascript include – effects.js added and scriptaculous.js removed (For some reason it worked in 2.2)
  • 10-Nov-2007: Added ability to display posts (with caution), to expand by default, and also added plus and minus signs as expand/collapse buttons
  • 24-Aug-2008: Multiple updates:
    • Enqueue javascripts using WordPress API wp_enqueue_script
    • Validation as XHTML 1.0 Transitional
    • Add option to expand current year and/or month by default
    • REMOVED list type option
    • Added ability to upload own plus and minus images
    • Added ability to display plugin link. If you’d like to support this plugin, having the “powered by” on your blog is the best way; it’s our only promotion or advertising.
  • 25-Aug-2008: Bugfix to not load javascripts when effects is not used
  • 25-Aug-2008: Javascript code factoring and added ability to use HTML arrows
  • 16-Mar-2009: Separated year and month posts counts, added option to hide year after month names, ability to show current month in bold, enabled localized title
  • 17-Mar-2009: Fixed valid XHTML, and highlight (bold) bugfix


BIG FAT WARNING

The ability to display posts is provided after receiving so many requests for it. This feature is not practical for those with many posts in a month. Enabling it means that there is a lot more data that needs to be received by the browser, not to mention the load on the database. It is, however works very nice for blogs with low post count. Please use at your own risk and remember to test it.

Notes:

11-Nov-2007: I’d like to thank Meitar Moscovitz who tried his best to provide a patch to display posts in the list. I rewritten some of the code for version 2.1 based on his logic. Thank you!
25-Aug-2008: Thanks to Berny for his idea of re factoring the javascript code and also for providing HTML arrows option.

If you find this plugin useful, feel free to
Related Posts with Thumbnails

Popularity: 17% [?]

Related Articles

Tags: ,

Facebook Comment

WARNING & REMINDER: Comments are moderated and there is no exception. Comments unrelated to the post, too short, using phoney emails or funny names, will be marked as spam. Foul languages are filtered as spam. Your email will never be displayed on this site. If you would like to receive replies, use a valid email address and check the subscription box below.
 
  • http://www.ashrufzz.com Ashrufzz

    Awesome..I suggest you include the scriptaculous effects in your next upgrade ;-)

  • http://www.romantika.name ady

    Hey that is actually a cool suggestion. I’ll try to see whether I can utilize the scriptaculous js files already distributed with WordPress :-D

  • Andy

    This is great, but is there any way to change the format so it displays the full month (eg. August 2007 rather than Aug 2007)?

    (Apologies if this is a really stupid question as my tech knowledge is next to non-existent)

  • http://www.romantika.name ady

    Andy, no that is a very good and valid question. Currently that is not possible because of the way I code it. However I will add it soon to the next version as a setting option. That’s actually very easy to implement. I’ll let you know when the new version is ready.

  • Andy

    Cheers

  • http://www.romantika.name ady

    Andy: I have added an option to disable month name abbreviations.

    I have also included script.aculo.us as suggested by Ashruffz :-)

  • Andy

    Many thanks; I appreciate your time and effort. Take care.

  • http://johnsponderings.haager.net John Haager

    Just dropped it into my website. I’ve been wanting this capability for a while, and just finally got time to go looking.

    Good work!

  • Mycal

    Any chance in an upgrade to also show individual post titles under the months in collapsible style as well.

    Ie:
    2007
    -August
    –This is one post
    –This is another post
    -September
    –This is one post
    –This is another post

    Thanks for the fantastic plugin!

  • http://www.romantika.name ady

    Mycal: That is very possible however don’t you think it’ll be too much for the sidebar? Anyway I think that is not for me to decide, it’s for the users. I’ll add that capability to the next version ASAP.

  • Kalilive

    hello
    you’re pluggin widget is just wonderful !! It rocks!
    however, i’d like to use it for “categories”. I tried hard but I just don’t manage to change the code so that it works for ‘categories’.
    Would you help me? Thank you !

  • http://www.romantika.name ady

    Kalilive:

    This plugin does not handle categories, and might probably be broken now with WordPress 2.3. Isn’t there any existing plugins that handle categories in the same way? If not I can consider writing one.

    Anyway, I am analyzing compatibility with WordPress 2.3 now. I’ll let you know.

  • http://www.romantika.name ady

    Since this plugin does not use the database extensively, it was not effected by WordPress 2.3 database change. But a minor fix for scriptaculous includes has been made to version 2.0.1

  • http://www.wp-plugins-db.org/plugin/collapsible-archive-widget/ WordPress Plugins Database » Plugin Details » Collapsible Archive Widget

    [...] Visit [...]

  • http://maymay.net/ Meitar Moscovitz

    I agree, this is a lovely widget, but I’d also like to see functionality that allows for the individual posts themselves to appear in the list of archives. Also, it seems to make more sense from a usability standpoint to automatically expand the current month’s list of posts to give the reader some orientation. (Blogger’s hierarchical archives widget is a good example of exactly this sort of thing.)

    In fact, I have a project on which this functionality would be welcomed very soon. If I get around to it, would you mind accepting a patch for this feature, Ady?

    Thanks again for a lovely head start and a great widget.

  • http://blogg.attefall.se Magnus

    Hi!
    Great plugin! :-)
    And I am also interested in a plugin for Categories!

    /magnus, stockholm, sweden

  • http://www.romantika.name ady

    Thanks all for your kind words and suggestions. I shall try to find time to fork this project into categories (in a separate plugin).

    Meitar: sure if you don’t mind me changing it later as I am very particular about code readability and cleanliness :-)

  • http://blog.dkwan.com Daniel

    Another vote for individual posts and show current month. :) Great plugin.

  • BB

    I’d love to use this plugin, but want to show uniformity with my category list. So, I’ll cross my fingers and hope that this gets forked over into that. I was using WP-dTree, but that ceased to function with the taxonomy of WP 2.3. Also, that plugin hasn’t been developed in over a year with no way to contact the author. So, I’m hoping ady can come up with something.

  • http://maymay.net/blog/archives/2007/10/23/wordpress-collapsible-archive-widget-21-beta-with-collapsible-month-lists/ Ups and Downs and Everything In Between

    WordPress Collapsible Archive Widget 2.1 BETA with Collapsible Month Lists

    I went searching for a WordPress widget that enabled me to place a collapsible archive control much like the ones available in Blogger blogs “archives” widget a while back. With a little googling, I found a plugin that did almost exactly wh…

  • http://www.romantika.name ady

    All

    I have updated the plugin to version 2.1 with these new features:

    1. Ability to display posts (please see warning above)
    2. Ability to have the list expanded by default
    3. Plus and minus signs for collapse/expand

    I had some help from Meitar for the posts. Thank you.

    For the categories, I am thinking of a separate plugin. Can you give suggestions on how it should work? Categories expand to posts as a tree?

    Cat1
    - post1
    - post2
    Cat2
    - post3
    - post4

    Like that?

  • http://www.mycalingram.com Mycal

    Thanks alot Ady!

    This plugin is everything I want now (since I don’t use categories). It was well worth the wait for the post names. Again, thanks a lot and absolutely love the plugin. Keep up the fantastic work!

  • http://dkwan.com Daniel

    Thanks a lot!

    Is it possible to add a setting that makes the current month expanded and the rest collapsed by default?

  • Michael

    Great plugin! But I’m getting an “effect not dfined” JavaScript error. Any idea?

  • http://www.romantika.name ady

    Mycal: Glad you liked it.

    Daniel: Yes, I’ll try to find time to update.

    Michael: Most probably your WordPress does not come with scriptaculous. An old version? Let me know what version of WordPress you are currently using.

  • http://michaelpark.net Michael

    It’s working great now. Thanks! :)

  • http://mamchenkov.net/wordpress/2007/11/25/having-fun-with-the-sidebar/ Having fun with the Sidebar

    [...] Compressed archives.  Archives have been taking too much of valuable space, so now they are compressed.  You can either navigate (page by page) through archives for a particular year (which, I guess is not very useful), or click on a plug sign near the year that you are interested in.  You’ll see the year expand into a list of months that have posts.  Click on any month, and you’ll see the posts.  If you want similar functionality for your blog, I used the Collapsible Archive Widget plugin. [...]

  • http://www.krullis-web.de/blog/2007/11/26/wegklapp-archiv-fuer-wp/ Krullis B.log » Blog Archive » “Wegklapp”-Archiv für WP

    [...] bisher ein wenig. Daher habe ich mich sehr gefreut, als ich zufällig beim Surfen auf das Collapsible Archive Widget gestoßen [...]

  • http://michaelpark.net Michael

    Is it possible call the archive manually instead of using the widget?

  • http://thehoot.net Tweakenout

    I second Michael’s question. It would be great to call this from your sidebar as a php function, as opposed to just using it as a widget.

  • http://olalindberg.com/blog Ola Lindberg

    Hi and thanks for the great plugin! One feature request. Not sure if it’s possible, just throwing out the idea.

    It would be nice if it would output all posts as the original Archive does if a user with JavaScript disabled visited the site.

    Well thanks again!

  • http://www.romantika.name ady

    Firstly sorry for the delay in responding, I have been unable to even look at the blog lately.

    Michael and Tweakenout: I hear you, but I can’t promise when I can make the necessary changes. One thing I know is that the management (settings) have to go somewhere. A simple thing about widgets is that the settings are consolidated into the widgets page itself.

    Ola: I think that is possible using the noscript tag, I’ll experiment more if I can find time.

  • http://www.poduzetnik.biz goran137

    Thanks a lot for great widget. One more voice to make it for category’s as well. It would be very useful for making WP even more CMS-like. Cheers and a little stumble for you to get you some traffic.

  • http://www.kenanoff.com/blog/archives/241

    [...] страница. След няколко проби и грешки се спрях на Collapsible Archive Widget. А той е widget и поради факта, че (шшшт, не казвайте [...]

  • http://www.wordpressplugin.org/?p=247 Collapsible Archive Widget_Wordpress plugin

    [...] Plugin Homepage [...]

  • Ian

    Hi ady, neat little plug-in here. I do have one question though, would it be possible to make a sister plug-in for the blogroll/links?

  • http://mooparmghor.com/blog/?p=352 مبرمج حر » Blog Archive » اضافات المدونة

    [...] Collapsible Archive Widget [...]

  • Victor

    good one… thanks for developing this… is it possible to limit the archive listing to a particular category? tnx :)

  • cc

    I can’t get the widget title showed up. anyone having the same problem?

  • http://blog.codyredmon.com Cody

    I have a question regarding duplicating your archive widget. As it stands, I install and activate your awesome plugin and I get a single widget. However, I have different sidebar templates for my landing page, single post view and archives view. I would like to add your widget to all three, but can’t because I’ve given one instance. I’ve tried another plugin that is suppose to duplicate widgets, but my dupes of Collapsible Archive don’t display. Any ideas on how I can increase the widget availability to 3 instances, one for each of my sidebars?

    Thanks in advance!

  • http://hikarinet.info/ Hikari

    Hello, I’m using your arquive plugin on my blog but it does not support portuga characters. ç á ó in exemple are replaced by strange characters. Could you fix it plz? My blog is http://hikarinet.info

    tnx

  • http://hikarinet.info/ Hikari

    wow that was FAST!
    tnx a lot!

  • http://www.net-entrepreneur.com/6-must-have-collapsible-plugins-for-wordpress/ 6 Must-Have Collapsible Plugins for WordPress | Net Entrepreneur

    [...] Download [...]

  • http://www.wildmind.org/ Bodhi

    Looks like a really great widget. Is there php code I can put in my sidebar as an alternative to using it as a widget? I’m working on a new theme but the widget of course appears in my current theme

  • http://www.babyjesus.se/blog/?p=1052 babyjesus.se » Bloggarkiv » Svunna Tider

    [...] photo credit: Paul Watson Arkivsidan är död:( – Leve arkivet i sidlisten:)! Ja den där arkivsidan var ju lite snygg och flashig – eller Ajaxig – men den var faktiskt onödig. Nu hittar ni arkivmenyn i sidlisten istället. Är sidlisten ett riktigt ord förresten? För er som använder WordPress: den nya arkivpluggen heter Collapsible Archive Widget. [...]

  • http://upstage.org.nz/blog/wp-content/uploads/2007/10/avatar_body_collision.jpg helen

    this sounds like a great plug-in that will do exactly what i want – but where do i download it??? i can’t for the life of me find a download link that works : (

  • http://blog.zulufrau.de zulufrau

    Many thanks for this great awsome widget! I spent hours on searching and searching… and here it is :-) I got one question: Is it possible to add a setting that makes the current year (months so far) expanded and older years collapsed by default? Can I use own pics instead of plus/minus? Thanks!

  • http://eventurebiz.com/blog/50-wordpress-plugins-hacks-candy-store/ 50+ Wordpress Plugins & Hacks Candy Store – Web Development

    [...] *24. Collapsible Archive Widget Again, see our blog’s sidebar for an example. [...]

  • http://www.neotrinity.at/ berny

    hi ady,

    thanks for the nice plugin.

    just a quick suggestion: can you use the function wp_enque_script(); for the scripts instead of including them manually. – this would avoid doubled calls…

    greetz,
    berny

  • http://www.romantika.name ady

    @berny: thanks I shall consider that for the next release. I’ve never seen that function in the API before… perhaps I overlooked it.

  • http://www.neotrinity.at/ berny

    hi ady,

    thanks for the quick reply. – i think that this function is still not really well documented.

    btw. last night i included your plugin in my sandbox to verify the generated output. unfortunately, the code produced is not valid xhtml. i tried all three options (br, p, ul). the reason is that you’re immediately closing the html tag (eg. li) after the year.

    i hope that you got some time to fix that, because i like your plugin but also rely on valid code.

    cheers,
    berny

  • http://www.romantika.name ady

    @berny: Guilty as charged. I admit I never really validate the output when writing the plugin. To make this happen I shall be validating code with WordPress default theme, some of the time theme authors also takes valid code for granted.

  • http://www.rishi-kumar.com Rishi

    Hello. I was wondering if you had the previous version available for download. The new version automatically enqueues a lot of scripts which I don’t want loaded.

  • http://www.romantika.name ady

    I made an ugly mistake in the plugin when not using scriptaculous. A fix is being written.

  • http://www.romantika.name ady

    A fix has been made. JavaScript will only be enqueued by this plugin if effects are enabled.

    @Rishi: I’ve emailed you the older version. I have just started using tags so now versions are available here.

  • http://www.neotrinity.at/ berny

    hi ady,

    thanks heaps for the quick re-coding. now everything works and validates like a charm.

    i modified your plugin a bit to include the html-arrow-characters instead of the images. – here’s the code snippet if you want to use it (as an option for example :) )…


    $ara_collapsible_icons['plus'] = '►';
    $ara_collapsible_icons['minus'] = '▼';

    furthermore, i head another look at the produced code. – imho you could save a lot of locs if you would use a js-function instead of having the js-code within each onclick function.

    anyway, thanks once more and keep up the good work!

    greetz,
    berny

  • http://www.romantika.name ady

    I can’t resist simple updates. I have upgraded the plugin yet again, to version 2.2.1.1

    The items in the TODO list are bigger so that would take some time ;-)

  • http://www.neotrinity.at/ berny

    hi ady,

    that looks great! – the js-functions reduced the payload of my page by 15kb!

    thanks once more and greetz to malaysia,
    berny

  • http://www.alexpummer.com Alex Pummer

    Love the widget, but I was wondering if it was possible for plugin to generate css tags, currently the styling is hampering the visual style that I am going for. Otherwise I love the app.

  • http://www.romantika.name ady

    @Alex: would you mind providing an example? Do I assume that users know CSS?

  • http://www.alexpummer.com Alex Pummer

    Ady. I apologize for my wording. I was working late. I meant if the Plug-in could provide markups so they can be styled via CSS. Like generating custom or predefined classes and id’s.

    Say for each story link,
    currently ” IES Light Fix : mel
    changed 2 “….”

    and say the headers changed 2

    I see that you have id’s already in the ul and in the spans, but they are very specific, and figure its used to make the plugin work, but if there was a generic id that could be added along with it.
    Kinda new to this stuff, but I would hate to modify my style.css to change the coloring for each individual branch.

    -Alex

  • http://www.derrickoliver.com/blog D.O.

    I agree with Ian up there. I think this is an excellent plugin and I was wondering if there was any chance of a sister-plugin for blogroll/links/categories?

    Again, great work. Thanks.

  • Stan

    Good day. Tell please, how i can insert plugin into my sidebar. I have a non widgetized theme

  • http://www.marturia.net Ian H.

    I see in the documentation that you have listed the ability to change the list type: li, p, br. I don’t see anywhere in the widget where this can be set – was this function removed? Thanks!

  • http://pluginscatalog.com/plugins/collapsible-archive-widget.html » Collapsible Archive Widget – WordPress Plugins Catalog

    [...] Plugin Homepage » [...]

  • http://www.gouvrion.com/news/index.php jG

    great plugin you made !
    is there a way to display the previous year instead the currrent year ? (changing the plugin code ?)

    thank you
    be well
    jG

  • http://www.romantika.name ady

    I will consider that in the next version, not sure when but I do have plans to improve it further and add requested features.

  • http://www.sachikospace.com Lee

    Is anyone using this plugin successfully with WordPress 2.7 yet?

  • http://www.romantika.name ady

    This site is running 2.7 and the plugin is on the main page ;-)

  • http://kcc4rum.kcc4.com ek

    Searched high and low for an archive showing individual posts, at last striking it rich, thanks. I’ve got to confess, I’m a little intimidated by the combined technical know-how embodied in the foregoing questions and answers, however here goes.
    1. For sites with limited number of posts stretching over years, is there a possibility to omit the month/year heading and show posts only instead, IOW to be given the choice to use or not to use the month/year?
    2. If WP is set to show the last (say) 10 posts (Settings/Reading), it’s hardly necessary to include them in the archives shown on Home page. Let alone the current exclusive expand setting for month/year. For my purposes it would be advantageous to expand previous (in lieu of current) posts only, with the choice of adding year or even month when needed later. Could I do something about this myself? On second thoughts rather not if at all avoidable.
    Hope this makes sense. (If not possible, it certainly will not distract from the usefulness of your plugin/widget as is)
    ernst

  • http://huh.blogspot.com Murali

    I’m new to bloggong & My blog is about basics of Software Testing,Manual Testing,SDLC,Testing Techniques,Levels of Testing,Types of Testing,Test Planning,Test Execution,Test Development,Bug Tracking,Result Analysis,Test Design Techniques and QTP. so I write about that which I know.Give it a visit if you get a chance..
    feel to free to visit:http://huh.blogspot.com/
    Regards,
    Murali

  • http://www.romantika.name ady

    If you’re new to bloggong how come the blog contains posts back from the previous years? Your comment is not related to the post, and is purely for advertising your blog. It’s insulting.

  • http://www.romantika.name ady

    Wow… that’s long, and yes that makes sense. However it’s too complicated to be implemented. But I will surely consider it for the next release. Thanks.

  • http://www.tiherp.org tiherp

    Can I use this plugin with earlier versions of WordPress????

    Please answer……because I like the previous version…..not this 2.7

  • http://www.romantika.name ady

    Yes, 2.1 or higher.

  • http://www.crankybeardesign.com Max Lieberman

    Hi Ady, thank you so much for this plugin. Quick question: is there a way to insert a space between the icon/arrow and the date? They’re a little too close for comfort in my theme.

  • http://www.romantika.name ady

    Yeah, but it’s too small to update as a new version. I think it’s ugly too. If you’re feeling adventurous you can edit the file collapsible-archive.php line 421 and 422:

    From:

    421
    422
    
    $ara_collapsible_icons['plus'][1] = '►';
    $ara_collapsible_icons['minus'][1] = '▼';

    To:

    421
    422
    
    $ara_collapsible_icons['plus'][1] = '► ';
    $ara_collapsible_icons['minus'][1] = '▼ ';

    This is a space:

     
  • http://www.crankybeardesign.com Max Lieberman

    Thanks again! I’d only add that anyone looking to make the same edit should also add the space to the code a few lines above, which governs the display of the icon (your code is for the HTML arrows).

  • http://triggersandsparks.com sarah

    Excellent plugin, but “Expand current month by default” option doesn’t seem to be working! (Here: http://jayewells.com/testsite/)

    Is there a quick way to fix this? I’m familiar with PHP but don’t much like messing with other people’s code!

    Thanks for the great work!

    ps: I’m not sure if it’s on your todo list, but it’d be great if the months could show the post counts, as well!

  • http://www.romantika.name ady

    I see it’s working now on the real site? I didn’t really notice whether the test site contained a post for March (current month when you posted the comment). But I just tested the latest version and saw no problem with or without the effects. I hope you enjoy the plugin.

    Post counts for month added to TODO list. I don’t remember why it was not added before.

  • http://triggersandsparks.com sarah

    Hi Ady,

    Thanks yes, I was super-tired when working on this & had completely forgotten that it had just turned into March! Silly girl! Thanks again for the great plugin!

  • http://www.romantika.name ady

    No problem, I am glad you enjoyed using the plugin. I was also super tired when I received your comment, hence the delay. :-)

    Love your work, great design.

  • http://konzitermine.tk Florian

    Hi Ady,

    I like your plugin!
    Is there a possibility to highlight the current month? For example make the month bold?
    And an other (not so important) question: Could I remove the year after the month?

    Best Regards from Germany, Florian

  • http://www.spruijtje.nl Matthijs

    Heya,

    I was just wondering, is there also an update coming with a month post count? I am not a super star with PHP but I think more people then just me would like to have that kind of feature.

    I am delighted I finally found this plug-in, cos all others just suck soo much, and this one rocks! Whoehoe! :D

    Thanks in advance. :)

  • http://www.romantika.name ady

    New release 2.3 is avaialble.

    @Florian: added option to make the current month bold and the option to remove or hide the year after month names.

    @Matthijs: Post count settings are now separated between year and months

    There are still some todo… the ones done above are minor changes and to test in 2.7.1

  • http://www.romantika.name ady

    I did not plan to ignore you, I just realized. Yes, the ability has been removed because it caused so much overhead and ugly output so I am not sticking to a bullet list.

  • http://konzitermine.tk Florian

    Thx Dude!

    But when I use the option “Show current month in bold” all months will be shown in bold.

    Regards Florian

  • http://www.neotrinity.at/ berny

    hi ady,

    thanks for the update. – unfortunately with 2.3 i get these xhtml errors (unclosed list entries) again.

    greetz,
    berny

  • http://www.romantika.name ady

    I know, I am ashamed of that bug and has updated the plugin to 2.3.1 :-)

  • http://www.romantika.name ady

    Thanks Berny. I have updated the plugin to 2.3.1 and tested the output of the default theme using the validator. I think it should be all set now.

  • http://www.turkbaron.net baron

    Works great, thank you

  • http://www.romantika.name ady

    You’re welcome.

  • http://www.neotrinity.at/ berny

    hi ady,

    thanks for the quick fix! – 2.3.1 works just fine for me and the validator.

    another small thing – which i noticed – but to be honest may barely happen: instead of using your plugin in the sidebar, i implemented the function call in an archive page. thus, i configured the widget to display without a title. until 2.2.x this works just fine, but starting with 2.3 in combination with a language file, the direct call now always creates some kind of debugging output of the .mo file (author, date, language, etc.). my current workaround is to enter a single blank instead of an empty widget title. this keeps suppressing the debug message, but is not quite an elegant solution. ;) if you got time someday, maybe you could have a look.

    thanks & greetz,
    berny

  • http://bioblog.biotunes.org/bioblog/ Biotunes

    Love the widget, but one question – why do you think there is a big gap between the year and the list of months on my page? It doesn’t matter that much but it’s a tad annoying. I think it must be a quirk to do with the theme I’m using, but any ideas?
    Thanks.

  • http://charlesfmccracken.com Charles

    Hi Ady,

    Would love to use this, but my blog theme isnt widget able? If you do decide to have it work as a non widget as posted on your todo list please update me!
    Thanks!

  • Corey

    Thanks for the widget. I had one question though, is there a way to edit the fonts used? I tried a few things with no luck. I am using the titles of posts for now and they appear to be rather larger than I would like.

    Thanks Again!

  • Emma

    Hey, I just wanted to say that I managed to get the archives looking like I wanted them to! It was the CSS, not the PHP!
    Thanks again for the awesome widget!
    Emma

  • Jaco

    Hi, great plug in. I was just wondering how it could be modified to display an archive for a few categories in stead of all posts in one archive. The site I have made, have two cats but the posts should not be mixed together (the titles look a lot the same, but it for different reasons posted). I have seen that there are other plug ins that can show it in different lists, but they are not collapsible and thus would not work for what I need.

  • http://www.neotrinity.at/ berny

    hi ady,

    sorry to bother you again…

    i’m not sure if it’s a wp 2.8 bug or not, but html-entities in the page-titles like & are not converted to & which results in invalid xhtml page-titles.

    best,
    berny

  • ardee

    If I tell it to show the current month in bold, this month (June) is showing up as “6Jun” (abbrev) or “6June” in WP2.3.1. Otherwise the plugin is working reasonably well. Any thoughts as to why?

    Also: any way to move the arrow to the left of the year instead of above it? (Theme is Atahualpa 3.3.3).

  • http://www.neotrinity.at/ berny

    hi ady,

    it again me. – i had a look at your plugin’s source-code and if you change

    $result_string .= $lineStart.'ID).'">'.$post->post_title.''.$lineEnd;

    to

    $result_string .= $lineStart.'ID).'">'.htmlentities($post->post_title).''.$lineEnd;

    everything validates just fine... :)

    greetz,
    berny

  • http://andyshack.com Andy

    Love this plug-in, it’s just what I wanted to allow for easy navigation to recent posts from the front page.

    On your home page the header dot, expand/contract, link are all on the same line. but on my blog there is a new line generated after each of these, so it looks messy and wastes three times the space.

    Any ideas?

    I am running WP 2.8.1 and will try 2.8.2 soon. The theme is Atahualpa, if that helps you think about it or not. :)

    Still I am using it as it is far superior than the blind standard archive list, just wish it looked as swish as on your site.

    I will also pop the back-link on once it stops misbehaving, it’s not the best advert at the moment.

  • http://samanthagale.com.au/WP2/up-close Sam

    Has anyone had the issue where its creating an extra line in between the months???

  • Jerrad

    Yes, I’m getting that too.

  • Jerrad

    The left border of the archive widget is extending all the way across to the left side of the page instead of the left side of the sidebar (it’s in a right sidebar).

  • Jerrad

    Forgot to mention, that’s in IE only, not Firefox.

  • http://www.romantika.name ady

    First, I apologize for the delay in responding.

    @Berny: Thanks man, you’re always helping me generate valid code. I will try to find time to update.

    @Andy: Did you fix anything, it looks fine on your site.

    @Sam & @Andy: The newline might be caused by the width of your sidebar, and let’s not call it a newline. Browsers ignore newlines “n”. Browsers only honor html tags. Let’s call it line breaks “<br />”. If you can give me an example please do so.

    @Jerrad: That sounds like a CSS issue. Firefox and IE handles CSS differently. The plugin generates code only to consume your own CSS (same as other widgets) so I doubt I can do anything about it. But, if you give me an example (your URL) I might be able to suggest something.

    You guys can find my email at the Contact page.

  • Sam

    Hi Ady, I made multiple changes to the width of the column with no luck – still had the extra break (full line in IE 1/2 line in Firefix) example http://www.samanthagale.com.au

  • http://www.romantika.name ady

    Sam, as I mentioned above this is due to CSS. It’s padding 5px at the bottom of each <li> file wp-content/themes/lifestyle_10/style.css

    #sidebar ul li li {
    	background: #FFFFFF url(images/icon.gif) no-repeat top left;
    	padding: 0px 0px 5px 20px;
    	margin: 0px;
    	}
    

    Try changing to:

    padding: 0px 0px 0px 20px;

    … and your padding will be gone. If you have other widgets on your sidebar you would have seen that the gaps are there too…

  • http://samanthagale.com.au/WP2/up-close Sam

    Hey Ady – thank you soo much. For some reason I thought I had tried this aleady. Works perfectly. Btw: love the widget and thanks for your help once again.

  • http://www.romantika.name ady

    You’re welcome. I am glad you find it useful.

  • Sri

    Hi

    A very nice widget. Is there a way to just show the year and the count without the months?

  • http://www.packetofthree.co.uk David

    This is such a brilliantly executed piece of code – I love the effect – many, many thanks for developing it.

    Now all I want is exactly the same thing developing for Pages. Can you do that? Can you?

  • http://www.romantika.name ady

    Not yet. I will consider that for the next release, since WP2.9 has a lot of changes plugin developers need to update anyway. Thanks for your patience.

  • http://www.romantika.name ady

    Glad you like it David. Can you explain more about pages? I don’t get what you mean. Has it been discussed in previous comments?

  • http://www.packetofthree.co.uk David

    Thanks Ady

    On my site I want to use WordPress as a Content Management System with many layers of nested WordPress Pages. The way you’ve programmed the Archives widget to collapse is so good that I’d love to apply exactly the same effect the the Pages widget, with the same graphics and mode of operation. Is that clear?

    I can’t see that it’s been discussed before.

    Keep up the great work!

  • http://ww.jadan.net Jadan

    hey Ardee and Ady

    I am getting that same error when I use bold for the month. Its january now, so I am seeing 1January. Any chance that this will be resolved soon, or does anyone know a way to fix this in the code? Its one of the most visually useful aspects of the plugin and this is one of the best archiving plugins Ive found! I want to use it on everything!

  • tetsuf

    hi ady,

    I love your widget, and hope localize option on/off.

    thanks :)

  • Wouter

    Hi!

    What is the line to embed the plugin the old fashion way?

    Thanks in advance!

  • tetsuf

    Hi Wouter

    I have japanese pages, but I like to show in english.
    It’s old fashion way maybe?

  • http://villaandhutblog.com Osvaldo

    hi Ady
    I really like using your widget. I want to upgrade to WP 2.9 but as you have a warning above, not sure I can.
    Can you let me know when the widget will be compatible with WordPress 2.9?
    thanks

  • http://www.pocketrockettes.com Leigh

    Love this, thank you. I seem to have an extra, empty bullet between the month and the posts… how can I fix this?
    Regards!

  • Luchs

    Works here with WP 2.9.2. Thanks for that great widget!

  • http://hpguru.net hpguru

    Works fine with WP 3.0.

  • http://www.buildorrepair.com Ricky Gaspard

    I will give it a try. Seems my blog is going to need a collapsible menu soon.

  • http://www.romantika.name ady

    Thanks for testing!

  • http://www.buildorrepair.com Ricky Gaspard

    This plugin works from me. Great job!

  • http://wp.deveu.com dave smith

    Hey Ady,

    the month count doesn’t seem to be working with WP 3.0.

    http://wp.deveu.com

    not sure whether this is something fixable, be happy to pay to have you look at it if it’s not too costly.

    kind regards,

    Dave

  • http://animeinsights.com Joe

    The current month shows the number in front of the name of the month.

    So for right now it would show:
    11November 2010 (post count)

    Just wondering if anyone else is experiencing this?

  • http://www.romantika.name/v2/ Ady Romantika

    Joe I am unable to reproduce this. Could you please send me a screenshot for your widget setting? Which WordPress version are you using?

  • http://www.romantika.name/v2/ Ady Romantika

    Dave, I am unable to reproduce this with WordPress 3.0.5. I know it has been some time, but if you are still interested please send me details or screenshot for your settings.

  • http://www.nodch.de/ein-blick-ins-getriebe-wordpress-plugins-auf-nodch-de/1189 Ein Blick ins Getriebe: Wordpress Plugins auf nodch.de — nodch.de

    [...] häufig der Beitrag bei Twitter erwähnt wurde und gibt euch die Möglichkeit zum RT.Collapsible Archive Widget – Ermöglicht das Archiv das ihr rechts unten in der Sidebar seht. Spart gegenüber [...]

blog comments powered by Disqus