If you know that you will want to apply a filter to all of your post titles in WordPress, such as forcing uppercase, lowercase, or title capitalization, you can use a filter to do so. The filter below will force a title to lowercase as the post is saved:
function
ucc_post_title_filter( $data ) {
$title = $data['post_title'];
$data['post_title'] = $title;
return( $data );
}
add_filter( 'wp_insert_post_data' , 'ucc_post_title_filter' );
endif;
On line 6, strtolower() can be exchanged for any text-transforming function.
Site archives often follow the format of a weblog's front page postings, listing entry excerpts with links to the entry's individual archive page. In some circumstances, this may take up considerable space without adding to the user's ability to quickly scan the archives for a specific entry.
On this site, I have used PHP with Movable Type to create phonebook-style listings of entry titles and their entry dates. I found that this is both aesthetically pleasing and fairly simple to implement. Other ways of implementing the alternating colors include using JavaScript on the client side or using MT plug-ins when the site is rebuilt rather than running the PHP to generate @class@ attributes every time the page is called by a browser.
These other implementations may be published at a later date.
Continue reading "mt + php = legible archive listings" ►