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 5 replies, has 2 voices.

Last updated by EckyBrazzz 4 months, 3 weeks ago.

Assigned support staff: Marcos Vinicios Barreto.

Author Posts
May 29, 2019 at 4:59 pm #3917639

EckyBrazzz

Tell us what you are trying to do? Change hidden link to hidden link

Is there any documentation that you are following? Tried to add to child theme hidden link
But that link did not work
Is there a similar example that we can see?

What is the link to your site? hidden link

I remember that on a Portuguese site the link hidden link changed to hidden link but due to my affiliation programs I am not allowed to use coupons, so have to change it to company or in Dutch to bedrijven.

May 30, 2019 at 1:51 am #3919293

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for contacting WPML Support. I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

May 30, 2019 at 11:48 am #3922797

EckyBrazzz

Any response 😕

May 30, 2019 at 7:41 pm #3925873

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for the provided details and sorry for the bit of waiting here. I tried to access your website with the provided details but unfortunately it doesn't seem to be correct. I get an invalid username error message, can you review it please? A private reply is enabled for you again, so you can safely provide us with the updated details. Thank you for your collaboration and patience, have a nice day.

May 31, 2019 at 7:52 pm #3932919

Marcos Vinicios Barreto
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

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

Hello,

Thank you for the provided details. I took a detailed look in your website and inserted a custom PHP code to change the slug of your coupons post type, so now your coupons posts are displayed with the 'bedrijven' base slug, as you can see at: hidden link. You can find the PHP custom code to change that in your child theme functions.php file, this is the code added:

add_filter('register_post_type_args', 'wpml_support_change_coupons_cpt_slug', 10, 2);
function wpml_support_change_coupons_cpt_slug($args, $post_type){
 
    if ($post_type == 'coupons'){
        $args['rewrite']['slug'] = 'bedrijven';
    }
 
    return $args;
}

See: https://developer.wordpress.org/reference/hooks/register_post_type_args/

Please, let me know if you still need any other details and clarifications. Have a nice day.

May 31, 2019 at 8:03 pm #3932955

EckyBrazzz

Excellent support,

My issue is resolved now. Thank you!