With WordPress 2.7 came the post_class function. This gives a set of CSS classes to a post, depending on what’s in the post (e.g. based on what category it is in). The code that you use in your template to use this is simply like this: 1 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> While [...]
Check out our WordPress themes project!
Best of Pro Blog Design
- 110+ RSS Icons
- 25 Ways to Spice Up Post Photos
- Setting Up WordPress after an Install
- 35 Awesome User Interface Tutorials
- 40 Creative Blog Footers
- 10 Best Plugins to Get More Comments
- 30 Ways to Improve Readability
- 7 Elements to Make Your Design Great
- 10 Design Tips for Photoblogs
- Separating Trackbacks from Comments
- How To Do Automatic Database Backups
Custom Search