Title: [plugin: widget context] URL translations
Last modified: August 20, 2016

---

# [plugin: widget context] URL translations

 *  [GFernando](https://wordpress.org/support/users/gfernando/)
 * (@gfernando)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/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

Viewing 1 replies (of 1 total)

 *  [Kaspars](https://wordpress.org/support/users/kasparsd/)
 * (@kasparsd)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-widget-context-url-translations/#post-2094201)
 * Currently Widget Context plugin doesn’t support any hooks, so you might need 
   to have a look at Widget Logic: [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 1 replies (of 1 total)

The topic ‘[plugin: widget context] URL translations’ is closed to new replies.

## Tags

 * [context](https://wordpress.org/support/topic-tag/context/)
 * [translations](https://wordpress.org/support/topic-tag/translations/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kaspars](https://wordpress.org/support/users/kasparsd/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-widget-context-url-translations/#post-2094201)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
