WordPress 2.9 Upgrade
I upgraded this blog to WordPress 2.9 today, and it appeared to go entirely smoothly. Please let me know if you notice any breakage.
I upgraded this blog to WordPress 2.9 today, and it appeared to go entirely smoothly. Please let me know if you notice any breakage.
wpbeginner has a list of their favorite WordPress 404 pages. There are some good ones in there, but none of them do what I think they should do—that is, as well as provide helpful links to popular pages, also provide a list of guesses about where the user was actually trying to go. Coincidentally, today I also read this excellent article about finding the longest common subsequence between two strings. So, at some point, I’ll improve my blog’s 404 page so that it calls, probably via asynchronous request, a Python script that checks the user’s requested URL against all valid URLs WordPress knows about, and then suggests to the user whatever the closest matches are. I’m somewhat surprised that this isn’t done more often, but it seems that far too many sites are really blasé about 404s.
Last week I posted about my setup for going from reStructuredText to WordPress. It involved a shell script, some Python scripts, and the pbpaste and pbcopy commands. It worked, but it was a little on the convoluted side.
Now I have a slightly better process, and one that I will have used to publish this post.
[more...]
I wrote about moving my writing over to reStructuredText on Sunday, and since then I’ve moved both my morning pages and my blog writing to it. The latter proved more complicated, primarily because I wanted to make the process almost as easy as writing pseudo-HTML (which is more or less WordPress’ native format, and kind of mine, too, for the last several years). With some hacky wrangling, I’ve managed to set that up.
[more...]
I did some work on the PyWebSF site, so that it looks rather better than it did with the default WordPress theme. I altered a pretty good WordPress theme called Arras Theme, which I was fairly impressed with. As a reminder, the first meeting is tonight.
Today I upgraded this blog to WordPress 2.8, a relatively smooth process. I ran into completely unrelated problems (hitting the process limit for my shell account) that derailed things for a while, but the WordPress upgrade itself was smooth.
I use Subversion to upgrade, first using
svn export --force http://core.svn.wordpress.org/tags/2.8/ .
in my development environment, seeing if things look okay there, then checking in the 2.8 changes to my own repository (the only niggly part because I neglected to clean the dev environment of changes before the export, so I had to look through things to see what was part of the upgrade), backing up my live database, and then checking the changes out to the live environment. It all looks fine, and hopefully will continue to function normally.
I made a WordPress page containing a list of all the fiction I’ve published on this blog. I had to do this by hand, because it appears difficult to get a reasonable list using various WordPress approaches (such as tags). The page I created is hardly a masterpiece of user interface design (I hope to improve it significantly over time), but it’s better than what was there previously.
[more...]
The various blog moves and reworkings seemed to reduce the amount of comment spam I was getting, but now it’s gotten out of hand once more, so I’m resuming the use of the Bad Behavior WordPress plugin. Hopefully this isn’t something any legitimate readers or commenters will notice, but if for some reason you find it affecting you, please let me know via email.
I finally got around to writing up docs for, and then packaging, the two WordPress plugins I’ve finished recently:
I’m currently looking at support for series in WordPress, and am considering either writing my own plugin or using/forking the Organize Series plugin.
I’ve made some changes to my Related Posts by Tags plugin, so that it’s now possible to add the list of related posts to the RSS feed entries. As I was experimenting with this, I realized that I wanted the RSS entries to show the tags for a post as well, so I wrote a (very simple) plugin to do that, too.
As a result, those of you reading this via RSS will now see a list of tags at the end of posts, followed by links to related posts. Please let me know if this doesn’t work as intended, or if you have other comments on the change.
I’ve had a Recent Comments section on the front-page sidebar of the site for quite some time, and decided it was time for an upgrade. The old version was straightforward: it displayed a list of the most recent comments and who made them. What I decided I wanted was, rather, a list of the posts with the most recent comments on them, how many comments there were, and a list of the people who made the comments in timestamp order.
[more...]
One of the first things I did with my resuscitated blog was to figure out how I could develop for it in a reasonable fashion.
[more...]
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.