This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Diego Pereira 7 months, 3 weeks ago.

Assigned support staff: Diego Pereira.

Author Posts
February 18, 2019 at 4:18 pm #3213255

nicolaS-22

Hello,
I created a user with a custom user role which should only be able to edit, create new and delete custom post types events.

When i login with this user I can't duplicate an Event from the original one, i check duplicate box and press "Duplicate" in the sidebar but it does nothing.

Any suggestions?
I prefer not to use WPML translation management just to duplicate content.

Thanks in advance,
Nicola

February 19, 2019 at 12:55 pm #3216621

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello @nicolas-22, welcome to the WPML support Forum!

Does this user role allow the user to create translations for posts? What happens if he clicks on the "+" (create new translation) icon?

Please take a look at this article about the WPML capatibilites and check if you enabled the correct capatibilities for this custom role: https://wpml.org/documentation/support/wpml-admin-capabilities/

These articles may be be also useful:
- https://wpml.org/documentation/translating-your-contents/how-to-use-access-plugin-to-create-editors-for-specific-language/
- https://wpml.org/2016/01/allow-certain-users-edit-specific-languages/

Please let me know if it worked for you.

All the best,
Diego

February 22, 2019 at 10:41 am #3231849

nicolaS-22

Thanks for your reply.
I created a new user and I gave him the custom role created with "User Role Editor" plugin.
I created a new custom post type with its new capabilities:

'publish_posts' => 'publish_events',
'edit_posts' => 'edit_events',
'edit_others_posts' => 'edit_others_events',
'delete_posts' => 'delete_events',
'delete_others_posts' => 'delete_others_events',
'read_private_posts' => 'read_private_events',
'edit_post' => 'edit_events',
'delete_post' => 'delete_events',
'read_post' => 'read_events'

I can use the "+" symbol and copy the content from the original post. What I can't is duplicate the post from the checkbox.

Thanks!

February 25, 2019 at 12:03 pm #3239573

Diego Pereira
Supporter

Languages: English (English ) Spanish (Español ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Have you enabled the "wpml_manage_translation_management" and "wpml_manage_translation_options" to that user? These seem to be the necessary capabilbilites for the function you need.

Is this user able to duplicate the page through WPML > Translation management?

Kind regards,
Diego