Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Rename sitewide page headers so “Blog” doesn't appear

Awesome. Thanks! One small tweak. This code just outputs the slug with an initial capital letter:

ucwords( $wp_query->query_vars['category_name'] ), 'buddypress' )
ucwords( $wp_query->query_vars['tag'], 'buddypress' )

Would be nice to use a nice name instead (I’ll have to look in the DB or print out the variables to see if there’s some other variable I could use)… or use some PHP string command (if possible) to strip the dashes and capitalize all words.

Skip to toolbar