WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was wondering if there is a way to edit the default field labels on a custom post, for example instead of the author field saying "author" have it say "keynote speaker" I found one solution listed below, but this obviously edits it across the entire backend.

add_filter( 'gettext', 'change_author_to_keynote' );
add_filter( 'ngettext', 'change_author_to_keynote' );

function change_author_to_keynote( $translated ) 
    $translated = str_replace( 'Author', 'Keynote Speaker', $translated );
    $translated = str_replace( 'author', 'keynote speaker', $translated );
    return $translated;

Thanks in advance,


share|improve this question
up vote 2 down vote accepted

you can use:

function custom_author_lable( $input ) {
    global $post_type;
    if( is_admin() && 'your_post_type' == $post_type )
        if ('Author' == $input || 'author' == $input)
                 return 'Keynote Speaker';      
    return $input; 

just replace your_post_type.

share|improve this answer
awesome thanks! – pete_schuster Mar 9 '11 at 21:22

I think your two filters are possible for parse strings and replace it.

Hint: You can also see an example on githup, on a free plugin for language strings: https://github.com/toscho/Germanix-WordPress-Plugin/blob/master/germanix_translate.php

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.