• 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 .?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter eedavidee

    (@eedavidee)

    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?

    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')

    Thread Starter eedavidee

    (@eedavidee)

    what is that function, please explain

    Thread Starter eedavidee

    (@eedavidee)

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

    hope you can help

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp_list_pages question’ is closed to new replies.