[wp-testers] styling stick posts
Michael Preuß
micha at dynamicinternet.eu
Mon Nov 3 11:11:33 GMT 2008
Yes, use the template tag post_class():
<div id="post-<?php the_ID(); ?>" <?php post_class() ?>>
The output is like that:
<div id="post-12" class="post sticky hentry category-general category-wordpress tag-survey tag-wordpress">
Now you can use in your style.css
.sticky { background:#ff0000; }
Micha
http://wpengineer.com
> Hi, is it possible to style stick posts ?
>
>
More information about the wp-testers
mailing list