Muffinresearch Labs by Stuart Colville

Moved server and fixed WordPress 2.1 Blogrolls | 1 Comment

Posted in Hosting, Muffin Research Labs on 6th February 2007, 4:11 pm by

If you’re reading this the DNS has successfully propagated.

At the same time as updating the site I took the opportunity to upgrade to WordPress 2.1. Aside from needing to change the blogroll categories and update the function in the template all went fairly well.

The blogroll has been merged with the other categories so if you were referencing your blogrolls and link list via id it’s likely that your ids will have changed. The easiest way to find out what’s going on is to go and look at the blogroll maintainence screens and look at the category links have changed to.

The other issue for me is that the wp_get_links function seems to have changed causing the links to be output with a load of brs etc. To fix this I looked at the code and found that the function get_links() did what I wanted. Thus I changed from this:

<?php wp_get_links(4); ?>

to:

<?php get_links(37,'<li>','</li>','',false,'name',false,false); ?>

The difference being I am now specifying the markup before and after the links and whether to display the descriptions or not.

Post Tools

  • http://devonyoung.com/ Devon

    I didn’t like the way WordPress forced me to have a blogrolls as a category, so I removed it from being a default category and then I was able to delete the category completely. I felt better then. Otherwise, I like the new 2.1. Especially since there’s a decent native export and it exports in XML. Yummy!

GNU screen: open tab in current working directory|(1)

A nice trick for having screen open a new tab in the same directory as the one you’re currently in. To use it add it to your .screenrc

# Open new window in current dir.
bind c stuff "screen -X chdir \$PWD;screen^M"
bind ^c stuff "screen -X chdir \$PWD;screen^M"

Hat tip: mteckert on SuperUser.com

Ubuntu: add-apt-repository: command not found|(3)

When you’re using a minimal Ubuntu install if you find the ‘add-apt-repository’ command is missing (it’s useful for adding PPAs and other repositories), then simply run:

sudo apt-get install python-software-properties

Photos on Flickr

© Copyright 2004-12 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 0.534s.