WordPress — it’s a hack and a half

Omgwtflol

Some of you may have heard a beer-fueled proclamation that I was going to have my blog up and running before the end of the four day weekend following New Years Eve.

Well, that dead-line has well and truly passed. As it turns out, building a blog engine takes more than the 30min I was willing to invest. I have instead opted to… cheat.

Welcome, to WordPress!.

Feel free to update your RSS readers accordingly.

WordPress is an interesting beast. Wanna edit a theme? Just hack on these CSS and PHP files. Live, in a giant unformatted

<textarea />

field! You configure plugins (well some plugins) the same way, opening their actual code files and filling in the blanks.Want to disable a web-site feature? Why, just edit this theme-specific PHP file!

No web application has filled me with such a sense of… unease. I was pleasently surprised to find adding articles doesn’t involve editing a single PHP file. 2009 truely has arrived.

The Fail Thickens

After installing WordPress (omg one-click hackery thnx WebFaction) the next step was obvious. Make a theme that resembles my previous hackery. After a couple of minutes looking through the default theme put me off that though, so I moved on to removing the extranious crap that it comes with.

Bad idea.

What now, Batman?

No admin link for me then.

After comparing the default theme to my modified version it seems that  the code snippet

<?php wp_register(); ?>

is responsible for creating the link to the admin dashboard. This function also creates its own <li></li> tags as well, unlike around half of the other wordpress functions I’ve dealt with.

Obvious stuff, right?

This entry was posted in Uncategorized. Bookmark the permalink. Both comments and trackbacks are currently closed.