Blogsome notes

As I’ve said, I like Blogsome. It’s very convenient, and it’s based on WordPress!

But there are a few niggly things that have irritated me about the setup. I know enough about the back workings of WordPress now to be able to fix them, but newbies might not.

For example, when it comes to organising your links in your sidebar: all the standard templates I’ve tried give you a single list – compared to this blog, where I have several different categories of links (‘About’, ‘Weblogs’, etc), which is what people often want. Any different link categories you create in the Links Manager in the admin interface are just ignored.

This is because of a particular template tag that is being used in the main file. If a Blogsome user goes into ‘Manage’ in the admin interface, and clicks on ‘Files’, they get to the online editor which by default should show “index.html” (or go down below the box and click on “Main Page”).

If you explore the file in the box and scroll down, you will come to this piece of code, which is a template tag:

{get_links (probably followed by various attributes) }

That is Blogsome’s way of structuring the “get_links” WP template tag. But if you want “a nested HTML unordered [ie, not numbered] list of all links as defined in the Links Manager, sorted under link category headings” – all of which means: what you can see on the right in my sidebar – you need a different tag, “get_links_list”.

So, what you need to do is to replace the existing get_links tag in your Blogsome template with this

{get_links_list order=’name’} (or ‘_name’ if you want Z-A instead of A-Z)

to get the list sorted (alphabetically) by the link categories. Alternatively, if you use

{get_links_list order=’id’} (or ‘_id’ for descending instead of ascending order)

the categories will be ordered by their ‘id’ numbers rather than alphabetically.

Then remember to hit the ‘update template’ button, and when you view the blog again (assuming that you have created links under different categories in your Links Manager, of course), it should have had the desired effect.

(Don’t forget that if anything goes wrong, the Blogsome setup is such that you can easily retrieve the previous version of the template. It’s a pity that it doesn’t have a preview facility though.)

Advertisements
This entry was posted in WordPress. Bookmark the permalink.