Hi guys,
I feel this should be easy, but I'm tying myself up in knots trying to solve this! Ok, so plan is - on my homepage, I'm using Justin Tadlock's great Query Posts plugin. In the subsidiary asides, I'm getting the plugin to display a random *page* (not post).
In order to style the pages differently (e.g. different colours for H1, H2 etc. depending on the section), I'm using a custom post type - I've basically enabled tags for pages. However, how do I get custom tags to show up in the body class for pages? This has worked fine in the past for posts, but I'm stumped for pages.
I've got as far as (where "section" is my custom taxonomy - tags for pages):
function extend_body_class($c) {
$c[] = get_the_term_list($post->ID, 'section');
return $c;
}
add_filter('thematic_body_class', 'extend_body_class');
But it outputs "Array" into the body tag. Arggh. Any help gratefully appreciated!