Setting default post image for different categories

If no image is attach to the post then rhis code will help us to show different post image for different categories








category/cat_name; ?>.jpg" />






make a folder category by name in your theme directory. then add some image for your every category. such as news.jpg,  uncategorized.jpg etc