As I said I would, I’ve made a WordPress plugin out of the ‘related posts by tag’ functionality that I use on this site.
[more...]
Having revived my proper blog and transferred my content over, I’ve now started adding improvements, some of which I’ve been wanting to add for quite some time. The first one is a list of related posts on the individual post pages.
[more...]
I’ve wrangled my old plugins and custom code so that it mostly works, except for one or two features (such as “related posts” based on tags) that I’ll revive later. Good enough for now, so I’m making the DNS changes and going ahead.
If you’re seeing this text, you’re on the new server, and all should be well. But if you don’t see another post after this one by about Friday, it suggests RSS problems, so please drop me a line.
I continued working on the blog move today, and most of the tricky database-related steps are done.
[more...]
I spent time today working on moving this blog to a new home, while also combining the articles from the old (real) blog and from this temporary one, and upgrading my version of WordPress in the process.
[more...]
Apparently, my blog’s RSS feeds were set up incorrectly in the WordPress 2.0 version that I run, and I shouldn’t have been pointing directly to the files in the wp
directory, but instead to /wp/feed
. With my temporary version running WP 2.5, the functionality of those deprecated links was removed—but they still existed, merely returning blank feeds.
That should be fixed now. The most important article that people might have missed was probably the speech I gave at my father’s funeral, available for those who couldn’t make it in person.
I created a simple anti-spam plugin for WordPress—all it does is reject comments from unregistered users which have more than some number of links in them.
[more...]
Steps to installing:
if ($summary != “”)
{
?>
<div class=”excerpt”><?php echo($summary); ?><br />
<a href=”<?php the_permalink(); ?>”><b>[Read article]</b></a>
</div>
<?php
}
else
{
?>
<div class=”excerpt”><?php the_content(‘<b>[more...]</b>’) ?></div>
<?php
}
?>
<div class=”article_trailer”><a href=”<?php the_permalink(); ?>”>Permalink</a> <?php comments_popup_link(‘Comment’, ’1 Comment’, ‘% Comments’); ?> [<?php UTW_ShowTagsForCurrentPost("commalist") ?>] <?php edit_post_link(‘Edit’, ”, ”); ?></div>
Except that this didn’t work on the tag archive page (tag.php), because $post->id simply refused to work there, requiring me to get the post id with: global $id instead.
if ($sidenote != "")
{
?>
<div id="sidenote"><?php echo($sidenote); ?></div>
<?php
}
else
{
?>
<?php
}
?>
And then add sidenote fields as custom fields when creating posts as necessary.
<?php
$custom_stylesheet = get_post_meta( $post->ID, ‘custom_stylesheet’, true );
if ($custom_stylesheet != "")
{
?>
<link rel="stylesheet" href="<?php echo($sidenote); ?>" type="text/css" media="screen" />
<?php
}
else
{
?><?php
}
?>
And then add custom_stylesheet as a custom field to posts where necessary.