WordPress Plugin—Adhesive
May 10, 2007 | Posted by Jeffrey Barke | 16 comments
Adhesive is a WordPress plugin that allows one to easily mark certain posts as "sticky." Sticky posts always appear at the top of the page when WordPress displays several posts, but if more than one post is sticky, the post with the latest post time will appear topmost.
Adhesive was originally written by Owen Winkler and available at http://www.redalt.com/downloads/. Unfortunately, it is no longer available, and the last version by Owen doesn't play well with WordPress 2.1. So I fixed it and am making Adhesive available here.
Installation/Usage
Simply follow the download link below, unzip the download and drop it into your WordPress plugins directory. Then activate Adhesive via the plugin administration panel.
To make a post sticky, edit it and either check the "Sticky" checkbox located in the right column below "Keep this post private" or in "Custom Fields" add key sticky with a value of 1.
Please note that if you deactivate Adhesive, all posts marked sticky will revert back to regular status. To upgrade this plugin and preserve posts' sticky status, just overwrite the old Adhesive files with the new ones.
Download Adhesive
→ Adhesive 3.4.0 for WordPress 2.6.5. Last updated 29 November 2008. Release notes.
Adhesive has been tested under WordPress 2.6.5 in Firefox 3.0.4, Google Chrome 0.4.154.25, Internet Explorer 7, Opera 9.62 and Safari 3.2.1 running on Windows Vista. If something isn't working right, please leave a comment.
























Awesome Jeff! Glad you sorted this for the WordPress kids.
Dave Fletcher (theMechanism)
May 11th, 3:52 pmjust to make sure I’m getting the most out of this plugin, are there instructions that go along with the .php file?
Fr. Chris Decker
September 14th, 4:59 pmsilly me. self-explanatory! Pax.
Fr. Chris Decker
September 14th, 5:19 pmhi,
sorry. maybe it’s too easy to be noticed. is there supposed to be a button or check box to index the article as a sticky? thank you.
pei
December 4th, 5:31 pmSorry for not getting back to you sooner, pei. Adhesive adds a checkbox labeled "Sticky" to the "Post Status" options in "Write Page" and "Write Post".
Jeffrey Barke (theMechanism)
December 20th, 6:35 pmThanks for the great update for this useful plugin. You rock!
mcd
June 26th, 3:29 pmHi
Unfortunately, like other versions of Adhesive, this plugin stops the ‘next page’ link at the bottom of multi-post pages from working and had to be disabled.
Any fixes very welcome!! Thanks anyway
langlaiserousse
November 23rd, 6:50 amThanks for pointing that out langlaiserousse. I’ll take a look at it this weekend and see if I can fix it.
Jeffrey Barke (theMechanism)
November 25th, 12:37 amlanglaiserousse, the latest version of Adhesive (3.4.0 released 30 November 2008) should address your concern. I've tested it on a couple of blogs and it does not stop the "next page" link from working.
If you have any problems with 3.4.0, please let me know. Thanks!
Jeffrey Barke (theMechanism)
November 30th, 5:19 pmHi Jeffrey,
I’m running WPMU 2.6.5 and although having installed and activated adhesive successfully - I cannot see the checkbox labeled “Sticky” to the “Post Status” options in “Write Page” and “Write Post”.
Adhesive not compatible with WPMU or what could it be?
Thanks
dob
dob
January 6th, 5:41 amDoes this plugin work at all with WP 2.7? I just tried installing it and the Post Status box does not show up.
Lisa
January 8th, 9:50 pmdob—I've never tested it with WPMU; I will look into this.
Lisa—I'm not sure if Adhesive works with WP 2.7, but regardless it's obsolete. WordPress 2.7 natively includes support for sticky posts.
Jeffrey Barke (theMechanism)
January 12th, 10:43 amHy,
if I comment line from below post_meta wouldn’t be deleted if I deactivate/activate plugin. I mean, all sicky post will remain “sticky” after activation.
//add_action('deactivate_adhesive/adhesive.php', 'adhesive_deactivate');
Only thing I see is different:
I get sticky post on index and category pages and I’m fine with that.
Is there any other dysfunctionality what should I know about?
VeAn
February 9th, 6:53 pmAbout question just above this one:
Is is possible to have sticky just on INDEX page?
Can You help me with these?
Thanks
VeAn
February 10th, 9:12 amSorry VeAn, I don't quite follow your first comment.
What version of WordPress are you using? WordPress 2.7 natively includes support for sticky posts, so this plugin is obsolete and should not be used.
Regarding sticky posts on just the index page, I am not sure how the WP team implemented sticky posts in 2.7, so unfortunately cannot help.
If you are using an older version of WP and Adhesive, I'll see what I can do.
Thanks,
Jeffrey
Jeffrey Barke (theMechanism)
February 11th, 2:14 pmHy,
I’m sorry, I forget to mention.
I’m using wordpress 2.6.2. and can not upgrade to 2.7. so I need Your plugin.
(I can not upgrade because I have lots of other plugin and custom field all over of theme and will require lots of changing)
Like I said, I comment line like this:
//add_action('deactivate_adhesive/adhesive.php', 'adhesive_deactivate');With that I get 2 new things:
1. post_meta aren’t deleted after deactivation/activation of pugin
2. sticky post are all over the site:
(index and category)
Now I have 2 questions:
1. Is there any other dysfunctionality what should I know about? (Regarding to commenting that code)
2. How can I change plugin to show sticky posts only on index page.
Thank You for Your help in advance
and sorry for my bad English
VeAn
February 11th, 2:37 pm