• Resolved nbspjr

    (@nbspjr)


    Hi, sswells.

    I just installed your plugin and noticed that it doesn’t work well with qTranslate because you display raw content (like page titles in widget settings). The problem is that I see titles for all languages instead of just the current one. Something like this can be done as a hotfix:

    display-widgets.php:140
    replace
    <label for="<?php echo $widget->get_field_id('page-'. $page->ID); ?>"><?php echo $page->post_title ?></label></p>

    with
    <label for="<?php echo $widget->get_field_id('page-'. $page->ID); ?>"><?php echo apply_filters('the_title', $page->post_title, $page->ID); ?></label></p>

    Or you can use the WP loop instead of foreach, so all the filters will be added automatically.

    https://www.ads-software.com/extend/plugins/display-widgets/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please use filters for displaying content like titles’ is closed to new replies.