wp_list_pages problem
-
I am having a problem with the wp_list_pages template function. What I am trying to do is output the pages I have created under Admin -> Write -> Pages, as list items as part of a larger list. I want the items to appear without the
<ul>
tag. Briefly here is a mock-up of the code I’m using:</ul>
<ul>
<li>some link</li>
<?php wp_list_pages('title_li='); ?>
</ul>
I expect the wp_list_pages to output a
<li>
item for each static page that I have created. Instead, it is not generating any output at all. If I change the tag towp_list_pages('title_li= ')
, I get output, but each of the top page categories is enclosed in
<ul>
tags.In summary, shouldn’t I see some content for
wp_list_pages('title_li=')
, or is it really supposed to output nothing?</ul>
</li>
- The topic ‘wp_list_pages problem’ is closed to new replies.