Support » Themes and Templates » not translating in wp_list_pages

  • Resolved Majklas

    (@majklas)


    I’ve done special page with submenu only with page children. The thin is.. I can’t get h4 tag to work above that menu.. Translations are ok, but I see text from __(‘My list’) instead of translated one. All of other text are translated fluently.. Should I use print with those %s1 ?

    $children = wp_list_pages("title_li=<h4>". __('My List') ."</h4>&sort_column=post_title&child_of=".$post->post_parent."&echo=0");

    Thanks for any help! 🙂

Viewing 1 replies (of 1 total)
  • Thread Starter Majklas

    (@majklas)

    damn, forgot to add “text domain”.. 🙂
    sould be like

    $children = wp_list_pages("title_li=<h4>". __('My List','awesome_ME') ."</h4>&sort_column=post_title&child_of=".$post->post_parent."&echo=0");

Viewing 1 replies (of 1 total)
  • The topic ‘not translating in wp_list_pages’ is closed to new replies.