A bit too computerised?
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. (…)
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.
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. (…)
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). (…)
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.
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. (…)
Oi, how some people complain every time there’s a new .x upgrade to 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. (…)
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. (…)
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. (…)
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>";
} ?>