I want to display the content of all pages on a single page, with links to each page.
This might sound like a daft request, but it's useful for quickly reviewing what's available on a smallish site.
Using the code below, I can get most of the info I want, but don't know how to add the permalink.
<?php $pages = get_pages();
foreach ($pages as $page_data) {
$content = apply_filters('the_content', $page_data->post_content);
$title = $page_data->post_title;
$slug = $page_data->post_name;
echo $title;
echo $slug;
echo $content;}
?>