I am making a custom auton.php
file in wordpress. In my web i have made profile in of teacher/gurus when i open them it opens right profile but issue is when i switch to any language it always open admin profile in stead of that particular profile
Please make sure your theme is WPML compatible. Here is compatible theme list.
Also make sure you are using updated Plugins and Theme.
Please make sure minimum requirements for WPML meet.
Please check for a possible theme and plugin conflict. To do that you can switch back to any default theme (e.g. Twenty Seventeen theme), Disable all plugins except WPML and see if this issue goes away with default theme and only WPML activated?