Support » Fixing WordPress » Change Author on Custom Post

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

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

    +1 @steven Jones!!

    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.