Adhesive allows you to easily mark certain posts as "Sticky". Sticky posts appear at the top of the page when WordPress displays several posts.
The latest version of Adhesive is Version 3.2, which is designed to work with WordPress 2.0 - 2.0.1.
To install Adhesive, download the installation archive and unzip it. Discard the readme.txt file (it simply directs you here) and upload the adhesive.php file to your WordPress plugins directory. This is usually /wp-content/plugins
Open the WordPress administration panel, and on the Plugins tab, click Activate on the row that contains Adhesive.
Adhesive is now ready to use.
Create a new post in the usual way.
In the post editor, find the "Post Status" box in the right-side column. You will notice a checkbox that is labeled "Sticky". Simply check the checkbox and save the post to make that post sticky.
When you view the blog, the sticky post will appear at the top.
If more than one post is sticky, the post with the latest post time will appear topmost.
Sticky posts only appear when the set of posts displayed by WordPress includes posts from the same category as the sticky post. So if your stick post is in the "dogs" category and you're viewing the "cats" category, the stick post will not appear.
You can set options for the Adhesive plugin using the Adhesive Configuration Popup:
A sticky post is assigned the additional CSS class "adhesive_post" via script that is inserted into its content by the plugin.
To change the look of a sticky post, add appropriate CSS to your wp-layout.css file. For example:
.adhesive_post {
border: 1px solid green;
margin: 15px;
}
.adhesive_post H3 {
background-color: yellow;
}
.adhesive_post .storycontent p {
font-weight: bold;
}
All posts, no matter whether they are sticky or not, can display the date on which that post was written. Adhesive can overrides this date field with its own value when the date is displayed as a heading in the post listing. This behavior is only applicable to some themes.
You can change the value that is displayed from within the Adhesive configuration system. Be sure to use a heading tag to offset your custom output.
By default, sticky posts appear on any page that would show more than one post from the same category as the sticky post. You can prevent sticky posts from appearing on the home page by checking that option in the Adhesive configuration system.
Red Alt is an outlet for Owen Winkler's web tools and provides a consolidated and organized archive of other online web development tools and resources.