What’s the name of your taxonomy? Your taxonomy can’t be name “Category” since this is the same taxonomy that is being used by wordpress on Posts. Change your taxonomy name to a different name and your taxonomy will be not be in the posts section.
A refined explanation can be found here:
How to Style Each WordPress Post Differently
my solution:
enable your custom field and put a key: class and value: featured
on your post that you want to feature.
in your index.php wherever you put your blog listing, do this:
in your div class, put this:
<div class=”<?php $value = get_post_custom_values(“class”); if ( is_array($value) ) echo “featured”; else ?> <?php echo ”; ?>”>
finally, style your .featured
.featured
{
width:500px;
}
The attachment page is using the page.php template. Thanks for helping!