Skip to content

Wikifying a Wordpress blog

Some time ago I added a wiki to this blog. The wiki augments some blog-entries with additional background-information. Information that may change and should therefore be adaptable easily. The thread in my blog describing these changes can be picked up at Mehr Spass beim Verlinken von Wikipedia (More fun linking to Wikipedia). With the newest change descriped in the following I enabled the easy intra-blog linking.

Description

Adding information on {{blikis}} to the DenkzeitWiki yesterday it occurred to me that I may just as easily add the functionality to link between blog-entries to my wordpress-installation (which is of version 1.2, mind you). I therefore extended the WikifyBlog-Script with the ability to link to other entries in my WordPress blog. The idea is quite simple: Wrap the title of the entry you’d like to link to into two ~ on either side.

Example

~~Wikifying a Wordpress blog~~ will link to the entry you are currently reading since Wikifying a Wordpress blog is its title. It’s that simple: Wikifying a Wordpress blog

Behind the scenes

The script uses the function sanitize_title_with_dashes from Wordpress’s wp-includesfunctions-formatting.php to generate the link to the entry corresponding to the title given. This somewhat relies on the rewriting-rules specified in the .htaccess responsible for the wordpress-installation.

If you have problems getting the script, especially the redirection, to work, please let me know.

Download

Expressis verbis: Wiki-page where script can be downloaded.

Verwandte Artikel

Post a Comment

Your email is never published nor shared. Required fields are marked *