Hack: Adding a Column With a Custom Field To the Admin Post List

So yesterday I showed you how to add a custom field to posts or pages, and then use that field to redirect the page to another URL. In the past I have used custom fields for other things too. I wanted to show this custom field redirect in the list of posts (actually, pages for my needs) so I can see which pages have a redirect.

Continue reading “Hack: Adding a Column With a Custom Field To the Admin Post List”

Hack: Redirect Posts To Any URL

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”

Tip: Number Of Posts In Lists

You may already know where to go in settings to set the number of posts shown on your home page and other category and tag lists on your site. You may want to keep that number small so the readers don’t have large pages to load. But on your end of things in the dashboard, you may want to set this number pretty high so you can see lost of posts per page. You can access this setting at the top of the screen when viewing posts.

Continue reading “Tip: Number Of Posts In Lists”

Hack: Display Category Descriptions On Archive Pages

So when someone ends up at an archive page on your site, like /category/something, they get a page title followed by a list of posts. That’s fine for a lot of purposes. But what if you wanted to put some text at the top of that? Maybe something that describes the category, explaining what sort of posts the reader is now viewing.

Continue reading “Hack: Display Category Descriptions On Archive Pages”