Skip Navigation

[Resolved] The author in a CPT can not be changed.

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 3 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#2279285

Dear Support Team,

I am trying to create a solution that will allow me to assign one or more wordpress authors to a CPT. I have tried to follow this guide: https://toolset.com/lesson-placement/lesson-placements-1622969-1929573/

In the edit view of my CPT ("Profile") the section "Author" is displayed. But unfortunately this section is empty and no author can be added or changed. Of course, the corresponding field is activated in the toolset settings, see: https://toolset.com/forums/topic/modify-cpts-author/ and all necessary rights are given ("Administrator").

What can I do to change the author? And is it possible to assign more than one author to a CPT? Because in the second step I plan to create a frontend form so that authors can assign or remove themselves (and with appropriate rights also other authors) to a CPT. In this context, it would also be good to know whether - analogous fields that are attached to relationships - it is also possible to create an individual text field for the user-CPT connection, which can then be filled by the author himself during the assignment (via frontend form).

Thank you very much for your support!

#2279707

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I just checked with my test install and I can see the author field is displayed with my custom post type edit post screen.

Here is the test site with login: hidden link

And you can try to edit the student post type and I can see the author field is displayed:
- hidden link

And is it possible to assign more than one author to a CPT?
==>
Toolset does not offer to assign multiple authors per post feature. In fact, WordPress does not support multiple authors per post. This is a customized feature offered by some plugins and is handled entirely in a non-standard way.

You can check the following plugin if that may help you to assign multiple authors per post.
- hidden link

Because in the second step I plan to create a frontend form so that authors can assign or remove themselves (and with appropriate rights also other authors) to a CPT. In this context, it would also be good to know whether - analogous fields that are attached to relationships - it is also possible to create an individual text field for the user-CPT connection, which can then be filled by the author himself during the assignment (via frontend form).
==>
As you already check the doc: https://toolset.com/lesson-placement/lesson-placements-1622969-1929573/

The relationship between user is possible through the author field and it can be only one author possibly assigned currently per post.

If you want to link posts to user-CPT connection, the only way to do is you should also store users as CPT. So, you should create a post type for instance "User Profile" and when you add a new user to your site make sure one entry should also be added to "User Profile" post type. That means if you have 10 users, you will also have 10 "User Profile" post type posts.

And then you can create post relationship between post type "User Profiles" and any of you post type you want. I hope this makes sense.