[wp-hackers] get_theme_support( 'post-formats' )
otto at ottodestruct.com
Wed Jan 12 17:59:36 UTC 2011
On Wed, Jan 12, 2011 at 12:25 PM, Chip Bennett <chip at chipbennett.net> wrote:
> Okay, I can't find the term for the Post Format slug.
> $obj->slug returns *'post-format-slug'*
> I want just *'slug'*
> $obj->nicename returns nothing.
> $obj->term_nicename returns nothing.
> $obj->post_format_nicename returns nothing
> Is there a way to return 'slug' only, or do I need to ltrim $obj->slug to
> pull off 'post-format-'?
You have to trim it. The slug isn't stored solo.
More information about the wp-hackers