Need help using PHP to list all my pages
-
I’ve been playing around with wp_list_pages in the codex section but it doesn’t make much sense to me yet.
I just want to list all the page titles (as links) in a vertical column automatically so I don’t have to manually add a link every time I add a page. I feel like it has something to do with the title_li parameter but I can’t get it to do what I want.
As a bonus, it would be nice to alternate background colors for each title to give the list some separation, but that might be asking too much…
I’m sure it’s probably simpler than I’m making it, but I’m pulling my hair out. This is the first thing I’ve needed to do with PHP so I haven’t spent much time with it.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Need help using PHP to list all my pages’ is closed to new replies.