[Resolved] Custom Role Users To Display in Authors Dropdown
This support ticket is created 4 years, 2 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Now we have 3 places where we have the Author's dropdown...
The QUICK EDIT in the list view for all posts in the wp-admin view
When the post is open in the wp-admin view, we have the Author dropdown
When the post is open in the wp-admin view, we have the Guests Author dropdown
Now, in the Quick Edit view I can see Only those users who have the custom role defined in the script above.
In the Author's Dropdown I don't see the users with the custom role
In the Guest Author's dropdown I see the code working perfectly fine and all users are displayed (Editor, Author and Custom Role)
but when I choose in the Guest Author the role is not really assigned as conditions that should apply if the author is assigned do not work.. I have to assign it in the QUICK EDIT to really have it work properly..
However I would like to ensure that the QUICK EDIT and the AUTHORS DROPDOWN actually reflect the GUEST AUTHOR DROPDOWN content.
Is there any documentation that you are following?
Hello Alilm. Thank you for contacting the Toolset support.
The request you filed with this ticket is require pure custom programming as Toolset do not control how the author drop-down is constructed on edit/quick edit screen at admin section. This is beyond the scope of Toolset and Toolset support policy.
The author drop-down is controlled using WordPress and you will require to hire developer to make it work as per your requirement.
I do understand that if it's beyond Toolset then yes I would be looking for custom development.
Can you please transfer this ticket to Christian.. I would be able to explain this much better to him as he had understood my requirement and in fact it's even working fine currently.. I just needed some advise and help on further tweaking the current script.
I think Minesh was not clear about my requirement.. so I'd like to rephrase the request just in case it was my method of explaining the requirement to blame.
You had already provided the solution and I am sure it was working earlier as I had not really found any problem.. Frankly I hadn't really used it much..
But it seems to be working but in different ways at different places.. so whereas I am able to have the benefit of your script on the Guest Authors and partly in the Quick Edit view and not in the Authors dropdown.. and as far as I remember it was working properly even in the Author's dropdown..
Please advise on the best way to use the script you provided.. as right now I am using the Quick Edit view to assign the author as this view shows only the custom role users which works fine for me for now..
If I could allow you access to the site and show you the issue it would be easier.. please do allow a private response so that I can share the issue with you.
Thank you for the clarification. It sounds like the "Guest Author" dropdown is irrelevant in this case because post ownership is a requirement. You will set post ownership using the main Author dropdown in the post editor screen and also the main Author dropdown in the bulk editor screen (Quick Edit screen). So we can disregard the "Guest Author" dropdown and plugin for now.
and was expecting the Author's dropdown to display the users with Editor and Author's role + the role that was used in the code/function from the ticket..
There are quite a few comments and replies so I would like to try to restate what you expect to confirm I understand the requirements now:
You would like to see all Users from the following roles displayed in the main post editor screen's Post Author dropdown feld, as well as in the Quick Edit Post Author dropdown field:
- author role Users
- editor role Users
- optician role Users
The author dropdowns in both locations should contain identical information. Is that correct? If not, please provide the Users' roles you would like to see in the Author drodown. Thank you!
You would like to see all Users from the following roles displayed in the main post editor screen's Post Author dropdown feld, as well as in the Quick Edit Post Author dropdown field:
- author role Users
- editor role Users
- optician role Users
Yes that's right..:-)..
The author dropdowns in both locations should contain identical information. Is that correct?
The custom code snippet from another ticket will continue to manage the Quick Edit feature, but not the author feature in the new Block Editor experience. Unfortunately I do not have a code snippet available that will help you modify the author dropdown names in the Block Editor. That will require custom code that falls outside the scope of support we provide here in the forums.
Yes I do realise that I can't expect custom code beyond a certain point from toolset and I really do appreciate how much your team does to help me..:-)..
And frankly, I think what you've done is good enough for me.. as now the Quick Edit works for me as a menu to select the 'special' roles and the Author's dropdown does the job it's supposed to do.. it's a good demarcation..;-)..
The only reason I wanted to ensure they both are the same was because I thought it was a bug.. but now that you've confirmed that it's the way it's supposed to be, then I am fine with it..:-)..