[wp-hackers] get_theme_support( 'post-formats' )
chip at chipbennett.net
Wed Jan 12 18:02:37 UTC 2011
Kind of hacky, but *substr( $obj->slug, 12 )* gets the job done...
On Wed, Jan 12, 2011 at 11:59 AM, Otto <otto at ottodestruct.com> wrote:
> On Wed, Jan 12, 2011 at 12:25 PM, Chip Bennett <chip at chipbennett.net>
> > 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.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers