Page 1 of 1

Simple function question from a novice

Posted: Fri Oct 09, 2009 10:26 pm
by bmw0325
I am definatly a php code novice, but I have a seemingly simple problem that I can't figure out.

I want a wp_list_pages function to list all of the pages separated by a comma and not have the title show.

Here's the function:

<?php wp_list_pages('title_li='); ?>


I thought I could change it to:

<?php wp_list_pages('title_li=', ', '); ?>

and the comma would be there, no dice.


I also tried:

<?php wp_list_pages('link_after=,&title_li='); ?>

But the comma is part of the link AND after the last page listed since it places the comma just inside the </a> tag.


I'm sure it's a super easy fix, but I can't figure it out. Thanks in advance for anyones help.

Brian

Re: Simple function question from a novice

Posted: Sat Oct 10, 2009 11:36 am
by JNettles
You might want to try posting the code of your wp_list_pages function so that someone can actually figure out what the problem is.....