Hi - I'd like to add a little bio to my pages underneath the pagetitle, but I'm having trouble with manipulating the code. Here's what I am trying to add to page.php under the page title section:
<!-- DW adding category bio and image here -->
<?php /* If this is a category archive */ } if (is_category()) { ?>
<!-- DW adding category image -->
<img src="/wp-content/uploads/<?php
if(is_category()){
$cat=get_query_var('cat');
$yourcat=get_category($cat);
echo''.$yourcat->slug;
}
?>.jpg" /><!-- DW end category image -->
<!-- DW adding category description --><p><?php echo category_description(''); ?></p> <!-- DW end cetegory description -->
<?php endif; ?>
<!-- DW end add category bio and image -->
I'm sure I am just messing the syntax - can you point me in the right direction? Thanks!