Suppose you have an old post that you want to remove, but you know there are still links to it out there. Ideally you want to redirect anyone coming to that page to another page on your site, or maybe even to another site. You can do that with a few lines of code, and in such a way that you can customize the destination URL on a post-by-post basis without touching the code again. So no need for a plugin or messing with your .htaccess file.
Continue reading “Hack: Redirect Posts To Any URL”Hack: Automatically Add a Tag Based On Post Title and Content
The worst part about using tags sometimes is forgetting to apply them. You can fix that problem for some of your most important tags by using a simple hack that looks at the title and content of your post every time you update it. If it finds a word in there, then the tag is automatically added.
Continue reading “Hack: Automatically Add a Tag Based On Post Title and Content”