WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages question (7 posts)

  1. eedavidee
    Member
    Posted 4 years ago #

    i have a quick question that i could not find the answer for in the wp_list_pages part.

    in case i use:

      <?php wp_list_pages('include=5,9,23&title_li=<h2>' . __('Poetry') . '</h2>' ); ?>

    and instead of ' . __('Poetry') . ' i want to include another page, suck as page with id of 20, but keep the link as h2 in this case, how do i exactly do that. ?

    anyone could help me .?

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    So what exactly is it you want to do?

    The section you mentioned only refers to the heading/title for the list.

    __('Text')

    is a localized(translatable) version, it's no different then doing this (other then the translation benefits obviously)..

    Text

    This line refers to the pages selected for the list..

    include=5,9,23

    5, 9 and 23 being the IDs.. but i'd imagine you know this already..

    Please clarify your question.

  3. eedavidee
    Member
    Posted 4 years ago #

    yes, i am asking this for translation purposes. i have the list on my footer here: http://www.cokc.biz/blog/

    and i need when chinese language selected the list title to be translated too, i dont have any ohther idea, than to make new pages for all categories and call those padge ids as list titles.

    any suggestions?

  4. Mark / t31os
    Moderator
    Posted 4 years ago #

    I havn't had a need for translating text myself, so i can't comment on the innerworkings of translation, perhaps try the other function..

    _e('Text')
  5. eedavidee
    Member
    Posted 4 years ago #

    what is that function, please explain

  6. Mark / t31os
    Moderator
    Posted 4 years ago #

  7. eedavidee
    Member
    Posted 4 years ago #

    i understand what it does but what i dont undestand is how do i add the translation. ?

    hope you can help

Topic Closed

This topic has been closed to new replies.

About this Topic