Situation abnormal…but that’s normal
Thursday, January 31st, 2008
I had missed the last few posts over at Karmaburn due to being busy. For Evirus to have three posts in two days is end-of-the-world type stuff. I had to check CNN to see if we weren’t under some type of Cloverfield attack. The good news is that there isn’t a giant Godzilla type monster attacking New York; however, the bad news is that things aren’t exactly peachy either.
It appears Karmaburn and アニ・ノート decided to implement a plugin that allows for them to order their categories from oldest to newest. This is all well and good, but what about we that utilize tags?
<?php
/*
Plugin Name: tag asc
Description: Set tag order to ascending
Author: author
Version: 0.1
*/
add_action('pre_get_posts', 'order_set_ascending' );
function order_set_ascending( $notused ) {
if( is_tag() ) {
set_query_var('order', "ASC");
}
}
?>
I used my l33t skills to edit the plugin to do tag ordering instead of the categories. I’ve emphasized the relevant code.
-
As long as we’re on Cloverfield, that movie almost made by barf. I couldn’t make it through the entire thing. It appears I have what some have discribed as CBS (Cloverfield Barf Syndrome).
I had missed the last few posts over at Karmaburn due to being busy. For Evirus to have three posts in two days is end-of-the-world type stuff. I had to check CNN to see if we weren’t under some type of Cloverfield attack. The good news is that there isn’t a giant Godzilla type monster attacking New York; however, the bad news is that things aren’t exactly peachy either.
It appears Karmaburn and アニ・ノート decided to implement a plugin that allows for them to order their categories from oldest to newest. This is all well and good, but what about we that utilize tags?
<?php/*Plugin Name: tag ascDescription: Set tag order to ascendingAuthor: authorVersion: 0.1*/add_action('pre_get_posts', 'order_set_ascending' );function order_set_ascending( $notused ) {if( is_tag() ) {set_query_var('order', "ASC");}}?>
I used my l33t skills to edit the plugin to do tag ordering instead of the categories. I’ve emphasized the relevant code.
-
As long as we’re on Cloverfield, that movie almost made by barf. I couldn’t make it through the entire thing. It appears I have what some have discribed as CBS (Cloverfield Barf Syndrome).


