[plugin: widget context] URL translations
-
actually url translations working great for me. If I want that a widget appears in certain page just put the permalink in the context and thats all, if I want that the same widget appears in the translated page, just put the permalink and that is all I need. (example: /members page and its spanish translation /miembros page)
the problem is that my client has many pages in many languages (I use wpml plugin) and he has to do a very annoying work with the URLs as pages comes and goes.
My idea to solve this problem is hack the widget context, intercept the call to the function where the logic is made, check if the page URL is a translation of the original language URL (english) and in that case show the widget without the need to check all the URLs of the widget context.So, for example, if a page has 7 translations, instead of having 8 URL in a certain widget, I will have only one URL (original page) and the logic will check if that page has a translation and in that case will show the widget.
is my guess correct? is viable what I want to do?
any suggestions will be welcome
best regards
- The topic ‘[plugin: widget context] URL translations’ is closed to new replies.