Forums

Rename/Translate Standard Post Attributes in Custom Post Type? (4 posts)

  1. Curtiss Grymala
    Member
    Posted 1 year ago #

    I'm working on creating a new custom post type (using the register_post_type() function), and I was wondering if it's possible to modify the names of items that appear on the post edit screen. For instance, I want to use the "Author" attribute, but I'd like to rename it to something like "Team Member". Is it possible to do this? Is this just a matter of attaching some sort of translation filter whenever someone creates a new item or edits an existing item within this post type?

    Any links or advice would be appreciated. Thank you.

  2. richarduk
    Member
    Posted 1 year ago #

  3. Curtiss Grymala
    Member
    Posted 1 year ago #

    I don't see anywhere in that post where it discusses renaming the standard attributes.

    Maybe I didn't explain myself well enough.

    Basically, I want to use the "author" attribute, so I've included "author" as one of the values in the "supports" array.

    However, when that particular item appears on the post editing screen, I don't want the header above it to read "Author", I want it to read "Team Member" or something like that. I've uploaded a screen shot trying to explain what I am looking to do.

    If it's not possible, that's fine; I'll just use a custom meta field. Thank you.

  4. richarduk
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic