Comments

I’m trying to download the narchives.phps file, but when I download it, all I get is a file with a ton of br and font tags… It seems that formatting has been applied to the PHP script. Is there any other way I can get the script?

Ummm… OK, that IS weird. There were br and font tags everywhere when I pasted it. Something must have happened to it when I posted the comment. Is there any chance I could get someone to email a plaintext copy to me?

Hi,
Thanks for a great hack that is easy to install.
I would like to change the order within a category by name. At the moment when I filter by category there doesn’t seem to be any discernible order, not date, name or post ID.

I’ve looked throught the code but am not smart enough to know where to look.

Hi I’ve installed this and it’s been working fine. However, it recently changed it’s behavior.

It used to be that when I loaded the nice archive, I got a list of all the site’s posts and the menus to sort/select them. Now when I load it, it shows no posts until I select and sort. And it won’t show “all years,” only one or the other of the years in my archive.

Very nice – but there’s a bug, and I don’t know how to fix it. I’ve been all over the code but I can’t find where to insert the relevant clause (AND where $date < $today):
If you select Category and set the year to the current one (2005, right now) you get as yet unpublished articles. This does not happen with Title or Date. (It’s not relevant if you don’t write posts in advance, but it’s a show-stopper if you do.)
Next, there’s only one author for my blog. Commenting out the relevant author_select function and function calls is easy – but perhaps this could be made into an option?
A smaller bug: changing the $defaultorder = ‘DESC'; to $defaultorder = ‘ASC'; doesn’t work, that is, the default sort order remains DESC. (That’s not the browser cache – I tried it with Moz and Firefox.)
(And I’d really like the “title” to show the short post blurb (wp_posts.post_exerpt) instead of repeating the post title, but that’s a very minor thing.)
Many thanks for this plugin, minor faults and all!

… that got cut off. The bug is: if you have as yet unpublished posts, they get shown if you select category and current year (2005, right now). It’s of no consequence if you don’t write things in advance, but it’s a showstopper if you do – and I can’t find where to insert that “and where $date smallerthan $today”.

A minor bug, as posted earlier: changing the defaultorder to ‘ASC’ doesn’t work.

An even smaller niggle: I have no need for the author select (and in fact it shows all registered blog users … not just authors). It’s easy to comment out the author_select function and function calls, but perhaps showing author_select at all should be an option, not a default thing?

And a very minor niggle: I’d like the “title” (the mouseover hint) for a post to show wp_posts.post_excerpt, not a repeat of the post title.

On my site at http://www.cameraontheroad.com.....chives.php I’m having a very strange bug. When nice archives is sorted by date, everything is fine, but when I sort by category (only change to sort), look under category “life on the road” and there begins a bunch of duplicate entries for the same post. Life on the Road is the default category and I’ve triple-checked and these are only single posts (no duplicates) and they are listed without duplicates when sorted by date. Not every post is duplicated, so maybe there is something about these individual posts, but I can’t find anything. No special keys, nothing. Ideas?

Hi there,
I am trying to find way to change the defaults on this. Iâ€™d like Catagory and ASC to be the default sort options.
Iâ€™ve seen plenty of messages all over the place that talk about how to change these defauts but Iâ€™ve found nothing that actually conclussively describes how to do it in a way that works.

I can’t seem to get past the following output:
Fatal error: Failed opening required ‘blog.header.php’ (include_path=’.:/usr/local/lib/php’) in /nethome/www/justkristin/narchives.php on line 3
Where did I go wrong? Thank you for this great script,
and for helping with it.

Sorry I am not coherent enough to keep all my stuff in one comment. I just realized what is messing up the sort – either way, now that I look at it. The few posts that have titles beginning with some kind of special character get sorted by the character…
I’d offer a solution if the thing were in Perl, but I am hopelessly lost in PHP land. Is there some way to use regexp to parse out non-alpha characters at the beginning of the string?

I have a problem with the date sort. It will only show the month of December for descending sorts and only show the month of January for ascending sorts. Any ideas? Thanks for the nicer archives and thank is advance for any help.

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-1′ at line 1]
SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-1′ at line 1]
SELECT DISTINCT * FROM wp_posts WHERE 1=1 AND post_date_gmt ‘2005-02-27 14:04:59′ AND (post_status = “publish”) GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 5-1

If I deactivate post per page plugin narchives works fine. This is the only thing I change. Can anyone help?
Thanks

I am having the same problem with the weird “-1 at line 1″ error and also use the post per page plugin. Had not thought about that being the culprit. Wish someone had figured out the problem not sure I am capable.

How do I make narchives sort by title as default instead of by date? I tried experimenting by changing $defaultorderby = ‘post_date'; to post_title but that obviously didn’t work (I just tried guessing since I don’t do any programming).

Hi there. Is it possible to change what the default sort is? Namely, I’d like it to show everything sorted by category by default. The user can then change it from that if they wish.
Also, does this support WP1.5.x theming? I have the default Kubrick theme and want to insure this will use that.
Thanks…Jonathan

I can’t seem to figure out how to have the archives appear on a page formatted like my theme. Narchives appears to “break” it. I have tried many things including the default installation & also changing the wp-layout.css to the path of my theme’s css. Neither work.
Look here: http://www.thebellsite.com/blog/narchives.php
If you’ve got ideas or suggestions drop me a line at jbell2k@hotmail.com – Thanks!

I have used Sortable Nicer Archives for a long time. It works well in WP 1.*. But after upgrade to 2.0, it returns some errors:
——————
WordPress database error: [Unknown column ‘user_level’ in ‘where clause’]
SELECT * FROM wp_users WHERE user_level > 0
Warning: Invalid argument supplied for foreach() in /home/â€¦/archives.php on line 74
——————

I’m trying to setup narchives.php on 1riccie.com/ideas (so a link to it appears in the sidebar.php). I’m a novice and would like to ask for more detailsa about how to include a link to /narhives.php from index.php (or sidebar.php). I’ve searched all over wordpress for instructions and have had no success. Hope you can please help!

I’m trying to setup narchives.php on 1riccie.com/ideas (so a link to it appears in the sidebar.php). I’m a novice and would like to ask for more detailsa about how to include a link to /narhives.php from index.php (or sidebar.php). I’ve searched all over wordpress for instructions and have had no success. Hope you can please help!

I am having the same problem with the weird “-1 at line 1? error and also use the post per page plugin. Had not thought about that being the culprit. Wish someone had figured out the problem not sure I am capable.

WP Hack: Nicer Archives
Mark at Weblog Tools Collection has a WP archives hack to give you a sortable list of archives. You can sort on date and category and filter by author and year. I have it in use here at Blogging Pro.

[…] I’ve been playing around with WordPress 2.x, which has some enhancements from earlier versions (including usability enhancements) — but found that the wonderful Weblogtoolscollection.com “narchives” Site Map has not been updated to work with WP2.x. […]

[…] I blog, I want to do certain things with my blog. When I first started with WordPress, my Sortable Nicer Archives plugin (please do not use it, it has gone by the wayside) was a necessity for me because I wanted a […]

About the Author

Mark Ghosh

An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.