Wordpress post_class function use
No doubt you can be more successful in your business sending needed mailings using free Email Marketing Software. It seams that very soon you can get the chance to improve your business using open source and free softwares like WordPress and SendBlaster Bulk Emailer Free edition to build an email marketing website ready for a free email marketing software.
Besides that dont you know that if you use WordPress 2.7 it cames with the post_class function which gives you 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
This is a great function for changing a post’s display, the classes that it outputs are actually quite limited. Luckily, we can add our own, and we can also add our own dynamic classes. Basically it means that using some extra lines of PHP, you can add own classes into the post_class function depending on some other post information. The default classes that are output are: post-id, where id is the post’s id post type, which by default are post, page and attachment sticky, for posts marked as sticky on the post write panel hentry, for hAtom compliance category-category-name, so if your category was wordpress, it would be category-wordpress tag-tag-name, so if your tag was php, it would be tag-php
Besides that dont you know that if you use WordPress 2.7 it cames with the post_class function which gives you 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
This is a great function for changing a post’s display, the classes that it outputs are actually quite limited. Luckily, we can add our own, and we can also add our own dynamic classes. Basically it means that using some extra lines of PHP, you can add own classes into the post_class function depending on some other post information. The default classes that are output are: post-id, where id is the post’s id post type, which by default are post, page and attachment sticky, for posts marked as sticky on the post write panel hentry, for hAtom compliance category-category-name, so if your category was wordpress, it would be category-wordpress tag-tag-name, so if your tag was php, it would be tag-php
