Skip to content


WordPress: hacking categories

The Loop is your basic WordPress doodad. (Please do not be intimidated or alarmed by my command of fancy-pants terminology.) Its function is to retrieve and display the latest posts with the number of posts displayed per page set by the user in WordPress’ Admin page (Settings>Reading). I’ve got this blog currently set to display five posts per page.

A basic loop looks like this:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

BLAH BLAH BLAH

<?php endwhile; else: ?>

<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

The BLAH BLAH BLAH is the section of the loop that determines how each post is displayed. In most themes, this will retrieve and display the title, date, time and author name along with the actual post content.

Now I’ve got a Web category on this blog that presents links I’ve found on the … Web. Rather than do the typical blog thing of grabbing an image and padding the entry with some snarky comments, I simply present these links with a brief one-line description if necessary.

I got it in my head that I would restyle the blog so that it handled these quick link entries differently from the rest of the blog. This involved three different tasks: excluding the Web category from the main loop, displaying the five latest posts in the Web category on the left sidebar and finally changing how posts are displayed when viewing the Web category.
Continued…

Posted in WordPress.


Tweet find

BackTweets. Search Twitter for links.

Posted in Web.


YouMP4Tube

YouTubeMP4. Download MP4 versions of YouTube videos without JavaScript.

Posted in Web.


Samurai X

Kawakami Gensai. Skilled swordsman and assassin. Also adept in tea ceremony and … flower arrangement.

Posted in Web.


Mount&Blade: Azgad daze, Swadian Knights

Mount&Blade is a sandbox game with no narrative but that’s not to say there are no stories to be told. You play a role of your choosing in a story of your imagining in this game. The stage is set and you are actor, director, writer. The only question is who will you be in the land of Calradia?

Will you be the hard mercenary captain whose only loyalty lies with the brothers and sisters of his company, faithful only to the terms of his short contract?

Will you be a faithful vassal, biting your lip as your king humiliates you by denying you what you have rightfully won with blood and valour?

Will you side with a claimant to a throne, part of a ragtag rebel force seeking to overthrow a mighty king?

A trader, perhaps, forsaking blades and bows for business and profit?

A paladin aiming to protect the innocent and the improve the lot of the poor or a dastardly thief waylaying the unwary caravan?

A little from column A, a little from column B?

Let me tell you of the days of high adventure
Continued…

Posted in Games.