WordPress

The blogging tool I’ve fallen in love with is WordPress. I’ve learnt some PHP because of it and I love tweaking the code. Here I’ll post about the WP plugins and things, too.

A bit too computerised?

:: Sunday, Sep 23rd 2007 @ 22:16 :: Home sweet home, WordPress ::

I have miscellaneous recipes all over the place: saved from the net, cut out from a magazine, written down on a tissue.
So, I had an idea: I should start collecting them in a cookbook. (…)

Forgot the anniversary again!

:: Sunday, Jul 15th 2007 @ 16:15 :: WordPress ::

On July 11th, 2004 I switched from Greymatter (after barely a month using it) to WordPress 1.2 “Mingus” which had been released in May of 2004 (had to take a peek in the developer blog on WordPress.org to be sure, but I had a hunch I jumped on the WP wagon1 with version 1.2). (…)

Upgraded to WP 2.1.2

:: Wednesday, Mar 21st 2007 @ 21:19 :: Updates, WordPress ::

I’ve just upgraded to WordPress 2.1.2 and I haven’t had time to inspect all the pages and how the old plugins work. If you see any errors anywhere in the blog, do let me know.

Moblogging my way

:: Tuesday, Nov 7th 2006 @ 23:09 :: Moblog, WordPress ::

Thank you il Filosofo! (…)

Note to self

:: Friday, Apr 7th 2006 @ 21:24 :: WordPress ::

Remember to convert database export into UTF-8 before importing
Luckily I’ve been playing around with local installations of WordPress and I just noticed the special characters (ä, ö, etc.) which really aren’t that special (you darn ASCII Americans :mrgreen:) turn into questionmarks when I import. (…)

Pro or con?

:: Friday, Feb 3rd 2006 @ 19:30 :: (Odd) people, WordPress, Work ::

Oi, how some people complain every time there’s a new .x upgrade to WordPress. (…)

Upgrading to WP2.0

:: Wednesday, Dec 28th 2005 @ 19:25 :: WordPress ::

I can’t believe I forgot new WP was released on Monday! This lazy bum here is now going to upgrade. Keep yer fingers crossed.
@19:45
Whoa… no glitches yet and all the plugins seem to work. (…)

Uninvited

:: Friday, Nov 4th 2005 @ 22:41 :: WordPress, Work ::

Darn, I got a Wordpress.com invite back in September but as I was about to redeem it now, I found out it expired in seven days. (…)

Desperate Spammers

:: Tuesday, Jul 26th 2005 @ 12:25 :: (Odd) people, WordPress ::

Ahhh… hilarious. Some poor sod is trying to write JavaScript alert popups in comments. His (no offense guys, but I bet it’s a he) newest attempt is a recursive function. Clever. (…)

WordPress code

:: Thursday, Jul 21st 2005 @ 19:17 :: WordPress ::

Someone at the WP Forums asked how one would list 5 most recent posts but not the current post if it was one of the most recent ones… So, this is what my brain spouted out:
<?php
if( get_query_var(’p’) ) {
$current = get_query_var(’p’);
} else {
$postname = get_query_var(’name’);
$current = $wpdb->get_var("SELECT ID from $wpdb->posts WHERE post_name = ‘$postname’");
}
print "<ul>";
$count = 0;
$posts = get_posts(’numberposts=6′);
foreach ($posts as $post) :
setup_postdata($post);
global $id;
if ( $count < 5 and $id != $current ) { ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php
$count++;
}
endforeach;
print "</ul>";
} ?>