You are currently browsing the archives for the WordPress category.

Syntax highlighting for code in Wordpress

Just found this SyntaxHighlighter Evolved plugin for Wordpress. Great for posting code in all sorts of languages. Lines can be numbered. The whole block can easily be copied and saved to a file for visitors who wish to try it out.

Getting permalinks to work in WordPress

After installing WordPress I noticed the links weren’t working. To get permalinks (pretty links) to work with Apache you need to have mod_rewrite enabled and configured in a .htaccess file. WordPress can add the right lines but only if it has write access to the file. I did the following.

% cd blog
% touch .htaccess
% su
% chgrp webfiles .htaccess
% chmod 664 .htaccess

Then go back to the WordPress admin page, change and save the permalink options again. The .htaccess will be modified as required. This is all explained in the WordPress documentation.