Profile page in another language
-
I need some help to know where to search in the code in order to solve this problem:
When I’m logged in as say user Paul and navigate to another user profile by typing /user-profile/testguy1/ for example, everything works as expected and that user’s (testguy1) info is loaded from the wp_usermeta table correctly.
However, if I type the page spanish version url: /es/perfil/?um_user=testguy1, the query var name is ignored and the page shows the current logged in user info, not testguy1’s info.
Where can I found the code that I need to change so the backend includes the spanish version url as a valid one in which the um_user query var can be recognized and then the correct data fetched from the DB?
Also, if I navigate to the the spanish page with the um_user prettylink name: /es/perfil/testguy1/ the page is not found.
Then how can I rewrite that url with prettylinks (I’ve tried it in functions.php as I do with other pages that are my own templates not UM pages with no success).
Thank you!!!
- The topic ‘Profile page in another language’ is closed to new replies.