WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Widget/Sidebar issue

[Resolved] Widget/Sidebar issue

  • I am building a new theme using a dynamic sidebar.
    Previously I’ve translated the sidebar using GetText.
    This doesn’t work for the dynamic sidebar anymore.

    For example:
    <?php wp_list_pages(‘title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    Would reslut in:
    NL: Pagina’s
    EN: Pages
    As the (‘Pages’) translated via an .MO file into “Pagina’s”.

    Since this line code isn’t used anymore for the dynamic sidebar I’ve tried to Design the Widget using the traditional way to setup dual languages for a post (as I have done with many pages/posts on my blog:

    [lang_nl]Pagina’s[/lang_nl]
    [lang_en]Pages[/lang_en]

    This however doesn’t result in just the language being displayed but the whole code as described above.

    Does anyone have an idea how I can use the widgetised sidebar with dual language?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Widget/Sidebar issue’ is closed to new replies.
Skip to toolbar