The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Change Author on Custom Post (8 posts)

  1. xjoex93
    Posted 2 years ago #

    The option to change the author is not available on the custom post type. Not sure how I can insert it. Does anyone know how I can add it to the custom post type?

  2. It would need to be added in the code when the CPT is registered. What are you using.. a theme option.. a plugin?

    Alternatively, you can change the author name in the database. I'm sure a Google search would yield some directions; but let us know if you don't find anything.

  3. KostasNi
    Posted 2 years ago #

    In addition to what Josh said, the option might be there but hidden.

    If you open edit page the post you need to change the author on, look on the upper right corner and click on the Screen Options. A number of checkboxes will appear. If "Author" is there but is not checked, just check it and the Author Selector will appear on the main pane.

  4. xjoex93
    Posted 2 years ago #

    @Josh yea I'm using a template which is why it's a little more confusing. I'd need to add something to the themes code correct? What would I add? And where?

    @KostasNi, it's not hidden I checked that already. Thanks though!

  5. Steven Jones
    Posted 2 years ago #

    You can add support for features on post types after they have been registered.

    function my_cpt_support_author() {
    	add_post_type_support( 'my_cpt', 'author' );
    add_action('init', 'my_cpt_support_author');


  6. +1 @Steven Jones!!

  7. xjoex93
    Posted 2 years ago #

    Thanks, but i'm not sure where to post the code since i'm using a template...any advice?

  8. Steven Jones
    Posted 2 years ago #

    You can put it in functions.php in your theme.

Topic Closed

This topic has been closed to new replies.

About this Topic