• 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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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.

    Thread Starter xjoex93

    (@xjoex93)

    @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!

    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');

    https://codex.www.ads-software.com/Function_Reference/add_post_type_support

    +1 @steven Jones!!

    Thread Starter xjoex93

    (@xjoex93)

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

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Author on Custom Post’ is closed to new replies.