Sticky Function in WordPress 2.7

Flag for Sticky in WP 2.7

Flag for Sticky in WP 2.7

With WordPress 2.7 you are able to make a post sticky, so this particular post will be showed on the top always. Before that you had to use a Plugin.

You can activate this setting for a post in the publish area, where you edit the publish date. It’s pretty easy to do.

But what, if you like to format the sticky post? For this matter there is a new function – post_class(). This gives classes for the different posts, also the class sticky, if it’s a sticky post.

Additionally are classes for categories and tags available. An example here with some information.
Continue reading …