[wp-hackers] post format types

Philip M. Hofer (Frumph) philip at frumph.net
Thu Jan 6 20:06:03 UTC 2011

Sorry charlie, you're writing CSS based changes, not HTML based changes with 
different post format look of the post.

What you already wrote is already written 100x over.

----- Original Message ----- 
From: "Otto" <otto at ottodestruct.com>
To: <wp-hackers at lists.automattic.com>
Sent: Thursday, January 06, 2011 12:01 PM
Subject: Re: [wp-hackers] post format types

On Thu, Jan 6, 2011 at 12:45 PM, Philip M. Hofer (Frumph)
<philip at frumph.net> wrote:
> I disagree, if the fallback of post_format_exists brought it to standard 
> or
> empty on non-designed themes with it. The first thought I had when I heard
> about this was "cool, I can have each author have their own "post look""
> that they can set.

You already had that. The get_the_author_meta( 'login' ) function will
get the author's login name just fine, and you can use that in much
the same way as you use get_post_format(), to change things based on

Heck, you can even make a minor change to the post_class to make it 

function post_class_author($classes) {
$author = get_the_author_meta( 'login' );
$classes[] = "author-$author";
return $classes;

Voila. Now you get an "author-foo" or similar in the post_class()
output, and you can style posts from individual authors by simply
using .author-foo in the stylesheet. If you want to go further and add
a customizable stylesheet box for each author in the profile page, I
can show you how to do that too.

wp-hackers mailing list
wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list