Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Functions for generating a menu of WordPress pages

One other note, unlike wp_list_pages() you need to call this function with echo:

<?php echo bb_list_pages();?>

or modify the last few lines of the function from:

// Return the string to the caller

return $output;

to:

// Return the string to the caller

echo $output;

return;

then you can call the function similar to wp_list_pages()

<?php bb_list_pages();?>

Skip to toolbar