Hi,
I know there are a couple of plugins out there which already do the function of adding page descriptions to wp_list_pages for instance your list_child_pages one and also the one add-wordpress-menu-description The latter works on filtering wp_list_pages but I find it too bulky as it adds a special write panel to edit pages, would it be beyond the scope to ask for something similar to be added to either the widgets reloaded or the version that comes built into Hybrid something along the lines of when listing pages, it checks to see if there are any custom fields and if so adds them... Or maybe just give us an idea on how we could filter the wp_list_pages ourselves
adding the page description and a special rel tag something like:
page that we want to have special description underneath it has custom fields of
menudesc this is my shortpage description
reltag my special rel tag
add_filter('wp_list_pages', 'descrip_page_lists');
function descrip_page_lists($output) {
if (page has custom field 'menudesc'){
$menudesc = Cantquiteworkouthowtogetcustomfielddatahere }
if (page has custom field 'reltag'){
$reltag = Cantquiteworkouthowtogetcustomfielddatahere }
$post_title = wptexturize($post_title);
$output = str_replace('>' . $post_title , 'rel='.$reltag'>' . $post_title . '<span class="mypagedescription">' . $menudesc . '</span>', $output);
}
}
return $output;
}
You know that I am always a good source of making you giggle with my hilariously bad PHP skills, but this is the possible way I could think of doing it just wondering how to write it correctly....
thanks