Simple function question from a novice

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bmw0325
Forum Newbie
Posts: 1
Joined: Fri Oct 09, 2009 10:14 pm

Simple function question from a novice

Post 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
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Simple function question from a novice

Post 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.....
Post Reply