Knowledge.ToString()

WordPress Sticky Post Plugin

Sticky Post Plugin is a must have plugin in your WordPress arsenal. This plugin shows the designated post on the top of every post. There is no need to modify your current theme.

Download WordPress Sticky Post Plugin

Version Supported

WordPress 2.1 and greater
WordPress Mu 1.1 and greater

Installation Procedure

1) Download the plugin and unzip it
2) Put the StickyPost.php file into your wp-content/plugins/ directory
3) Go to the Plugins page in your WordPress Administration area and click “Activate” for Sticky Post
So easy hmmm…….

How to stick your post?

It is even simpler than installing your plugin. Choose the victim post to stick on the top and add custom field Key=STICKY and Value=1, press Add Custom Field button, save the post and you are done!!!.

Known Issue

If your sticky post is very latest and comes on the front page of your blog, it will be repeated. (This post will be shown as a sticky post and as a regular post)

FAQ’s

1) I activated plugin but cannot see sticky post.
Check your WordPress version. It must be WP 2.1 or greater or WPMU 1.1 or greater. Second you check the custom field name and make sure that you spelled it correct.

2) I would like to activate Yearly/Monthly/Weekly Repeater Plugin as well
Dont do that mistake. It is going to throw mysql error.

3) I got weird mysql error
This plugin changes query for showing posts. It is possible that you have another plugin which also modifies the query and hence the resultant query is a junk query which MySQL is not recognizing. so now you have to deactivate any one of the plugins.

Share

Comments

79 responses to “WordPress Sticky Post Plugin”

  1. Raccolta di 10 Wordpress Plugin Molto Utili Ma Poco Conosciuti

    […] Sticky Post: permette di inserire un articolo fisso nella home page senza bisogno di “hackerare” il template del nostro blog. […]

  2. uthan Avatar
    uthan

    This is nice post. I like those plugin. I have many WordPress just like Mixedsoft so i need WP Plugin.

    Thanks Visit to get free SEO Tools, Themes, WP Plugin from Mixedsoft.

  3. Wordpress plugins to save your time at posting | Tech Blog by Pankaj Gupta – How To Guide,Tips and News

    […] Sticky Post: This plugin publishes a post on top of each post to emphasize over its value being old and important one. Related Posts:18 exclusive WordPress Plugins extensively usedWordPress 3.0 Beta version announcedTips to protect WordPress blog from the attack of HackersJquery Form plugins to ease out developing taskWhat to look into when choosing a CMS? […]

  4. 10 WordPress Plugins Guaranteed to Save You Time | eolthing.com

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  5. 10 Wordpress Plugins Guaranteed to Save You Time

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  6. first resume Avatar
    first resume

    Thanks for the plugin! Works perfectly fine for me

  7. redlex Avatar
    redlex

    After following this tutorial, I couldn’t get a couple of things to work. The permalinks will not work with the register_post_type() and arrays outlined in a function; I simply removed this and permalinks worked fine

  8. joon Avatar
    joon

    Thanks Perishable for your reply and please tell me one more thing that for SEO and site speed The Old Fashioned Way way is good or i would use a plugin and please tell me how to add Notify me of follow-up comments via email again, thanks for your precious advice in advance.

  9. Frank Servais Avatar
    Frank Servais

    I tried sticky posts on the latest 2.9.2 WP, and it doesn’t seem to work.

    I really needed to find a workaround to the fact that the “Stick post” concept does not work when the first page of the website is static, and a different blog page is set in the “reading settings”.
    Thanks for any help
    Frank

  10. 10 Good WordPress plugins. You need this!

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  11. Empress Avatar
    Empress

    @Panama Canuck

    Same here…this plugin messed my weblog..what the…

  12. CoffeeIT.Net » Blog Archive » 10 Wordpress Plugins Guaranteed to Save You Time

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  13. 10 Wordpress Plugins Guaranteed to save you time! | Just Social

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  14. AC Avatar
    AC

    This plugin makes everything that much easier. Try this out and you’ll know exactly what I mean. Thanks again! 🙂

  15. AMB Album » 10 Wordpress Plugins Guaranteed to Save You Time

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  16. WordPress Plugins mit Zeitspareffekt » Von admin » Beitrag » von pixeln und paddeln

    […] Sticky Post Plugin für wordPress ist ein fantastisches Plugin welches ermöglicht ohne große Codemanipulationen Artikel auf der Startseite, ganz oben (Themeabhängig), anzuheften. […]

  17. jeff Avatar
    jeff

    hi.. i installed the plugin and the whole wordpress crashed.. Sticky Post Plugin 1.1 (https://www.vishalon.net/blog/Post/88.aspx) Sticky Post Plugin is a must have plugin in your arsenal. This plugin shows the designated post on the top of every post. There is no need to modify your current theme. Version Supported WordPress 2.1 and greater WordPress Mu 1.1 and greater Installtion Procedure: 1) Download the plugin and unzip it 2) Put the StickyPost.php file into your wp-content/plugins/ directory 3) Go to the Plugins page in your WordPress Administration area and click “Activate” for Sticky Post So easy hmmm……. How to stick your post? It is even simpler than installing your plugin. Choose the victim post to stick on the top and add custom field STICKY=1, save the post and you are done!!!. Known Issue If your sticky post is very latest and comes on the front page of your blog, it will be repeated. (This post will be shown as a sticky post and as a regular post) FAQ’s 1) I activated plugin but cannot see sticky post. Check your wordpress version. It must be WP 2.1 or > or WPMU 1.1 or >. Second you check the custom field name and make sure that you spelled it correct. 2) I would like to activate Yearly Repeater plugin as well Dont do that mistake. It is going to throw mysql error. 3) I got wierd mysql error This plugin changes query for showing posts. It is possible that you have another plugin which also modifies the query and hence the resultant query is a junk query which MySQL is not recognizing. so now you have to deactivate any one of the plugin. Change Log 4/11/2007: When there is no sticky post, the front page will not show “Previous Entry” link– Fixed Questions/Comments? Vishal Monpara https://www.vishalon.net
    Warning: Cannot modify header information – headers already sent by (output started at /home1/victosa3/public_html/wp-content/plugins/ReadMe.txt:12) in /home1/victosa3/public_html/wp-includes/pluggable.php on line 850

    http://www.victorymalate.org.. please i need ur asap fix..

  18. T-Law Avatar
    T-Law

    Useful plugin thanks.

  19. 10 Wordpress Plugins Guaranteed to Save You Time | The Muliati.Com goBlog

    […] Sticky Post – no need to hack your WordPress theme to sticky a post Sticky Post is an impressive plugin that […]

  20. 10 Wordpress Plugins Guaranteed to Save You Time | Designurimagination Blog – Let Your Imagination Fly

    […] Sticky Post – no need to hack your WordPress theme to sticky a […]

  21. Panama Canuck Avatar
    Panama Canuck

    Wow, that was scary! I followed the installation instructions and when I loaded my site all I got was “the object you are looking for not found.” My entire home page was blank!!!! Luckily I removed the plugin and everything came back. Scared the crap out of me. This is a dangerous plugin!

  22. Adrian Avatar
    Adrian

    Uber cool plugin. The best sticky plugin I have used out of all of them out there.

  23. Sofia Avatar
    Sofia

    Running WP 2.6. With this plugin activated the blog doesn’t show any posts at all. Just says “sorry, no posts available”.

  24. Stefan Avatar
    Stefan

    Same problem as Brad and Ed. Post was published but did not show up on the home page (index.php) After deactivating plugin post came up fine. Running WP 2.6.

  25. Mahendra Shah Avatar
    Mahendra Shah

    Impressed. Wish I could learn more from you to develop
    my blog for my cartoons, paintings, kavitartoons and articles posting. Your tutorials will help me. Loved your poems. Congratulations for your media exposure.

  26. Ed Avatar
    Ed

    Same problem as Brad here, thank you for creating a plugin that messed up my blog…

    This plugin should not be made available to the public.

  27. Brad Avatar
    Brad

    It would seem that when I activate the Sticky plug in (not even use it on a page) the Home page does not display. It gives me, “Not Found Sorry, but you are looking for something that isn’t here.” and then displays the Search option

    (I am using Ad Clerum theme with 5 widgets on WordPress version 2.5.1.)

  28. Kaput Avatar
    Kaput

    Just an update: I installed the WP-Sticky plugin instead and that works great with 2.5.1. I recommend that plugin instead if this one does not work for you…

  29. Kaput Avatar
    Kaput

    It does not work with WP 2.5.1. I installed the plugin successfully, then set a custom field with the KEY as STICKY and the value as 1 to the post I want making sticky. It had no effect whatsoever.

  30. Chas Avatar
    Chas

    I really stuck my foot in my mouth. YOUR Sticky is vastly superior to the other choice. The other one almost needs it’s own help files.

    Now, I beg a question……can a second post be set to “2” or is the “1” a true false thing…..
    Thanks for the cool & simple file.
    – Chas

  31. Chas Avatar
    Chas

    You say simple,
    but the other sticky was a button called “Make this post sticky”.

  32. Jason Avatar
    Jason

    I must be missing something – when I activate this and don’t have anything as a sticky I get the following error:

    Sorry The Post You Are Looking For Had Been Deleted

    and none of my pages, post display.

    If I sticky a post it will come back with the same error – but if I sticky a page the page will show up but yet again no other posts, pages will.

    Suggestions?

  33. Chris Merriman Avatar
    Chris Merriman

    Just noticed there isn’t a ‘subscribe to comments’ type plugin, nor e-mail field for when we submit comments. If you would like to trace this issue with my help at all, please do feel free to contact me – best address would be
    personal AT chrismerriman DOT com

  34. Chris Merriman Avatar
    Chris Merriman

    It would appear that this plugin has problems with WordPress 2.5?

    I get the following error <code>
    WordPress database error: [Table ‘wp_posts’ from one of the SELECTs cannot be used in global ORDER clause]
    ( SELECT SQL_CALC_FOUND_ROWS wp_posts.*, 2 AS N FROM wp_posts WHERE 1=1 AND wp_posts.post_type = ‘post’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘private’) ) UNION ALL ( SELECT wp_posts.*, 1 AS N FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE wp_posts.post_status = ‘publish’ AND wp_posts.post_type = ‘post’ AND wp_postmeta.meta_key = ‘STICKY’ AND wp_postmeta.meta_value = ‘1’ ORDER BY wp_posts.post_date_gmt DESC LIMIT 1) ORDER BY N, wp_posts.post_date DESC LIMIT 0,10
    </code>

    ONLY if Stickypost 1.1 is activated. With all other plugins active, error does not occur. I’m assuming a code change within WP2.5 has caused this issue?

    This was on my test blog – test.chrismerriman.c

  35. John Avatar
    John

    I also have a problem with the sticky post showing up twice. Any thoughts?

  36. Mandy Avatar
    Mandy

    I installed this plugin and it now shows a double post how do you get rid of the double post? Thanks

  37. 3dogs Avatar
    3dogs

    I second the question about making it a sticky post per category. Possible?

  38. yen Avatar
    yen

    Thanks! Works like a charm! 😀

  39. David Avatar
    David

    Hi,
    How can I make 3 posts go to top on blogs instead of 1 only?
    Pls let me know.

  40. Dave Avatar
    Dave

    Dude. Brilliant plugin, works just as it should. Of the three I tried, yours fits the bill. Thanks.

  41. Greg Malin Avatar
    Greg Malin

    mr vishal, please visit Loadingvault.com in my opinion the best rapidshare search engine ever.

  42. af3 Avatar
    af3

    Vishal, can this be modified so that it makes a post STICKY for each ROOT Category?

    I’ve been looking for such plugin and this is something I believe close to it.. well probably not so close but hope that you can help.

    thanks in advance.

  43. Niels Avatar
    Niels

    I’m working with WP 2.2.1, this plugin works great, exactly as described in the installation procedure. Thanks for the plugin.

    Cheers,
    Niels

  44. oggin Avatar
    oggin

    Unfortunately this plugin does not work correctly with wordpress 2.3.1.

  45. Qball Avatar
    Qball

    For those having problems after installing and adding the keywords and it doesn’t work. I found a solution that worked for me.

    I installed my wordpress into a subdirectory off the domain. ie http://www.domain.com/jci/ After installing it and adding the custom fields it didn’t work.

    This plugin expects the wordpress installation in the root of the domain. I had to edit the plugin file to get it to work.

    I edited the file to account for that fact that when it’s checking to see if it’s the front page being displayed it would add my /jci to word count of the URI string.

    Here’s the original string in the file

    if ((strlen($uri)==1) || (strlen($uri)<=11 && strpos($uri,’index.php’)))

    Here’s my corrected for my particular installation

    if ((strlen($uri)==5) || (strlen($uri)<=14 && strpos($uri,’index.php’)))

    This line will need to be edited based upon where you installed word press.

    Perhpas Vis

  46. Dr Chandravadan Mistry Avatar
    Dr Chandravadan Mistry

    Vishal you are doing GREAT

  47. mikel Avatar
    mikel

    great plugin
    works perfectly for me

  48. pink Avatar
    pink

    plugin worked perfectly! thanks so much!!

  49. Shaun Avatar
    Shaun

    I installed the plugin and added the custom field and value. It does not seem to have any effect. Can you take a look please.

    http://www.skopemagazine.com/html/blog/

    Thanks
    S

  50. Michael Avatar
    Michael

    Excellent idea for a plugin. However, it won’t work for me (I have WordPress 2.3). Does it work on existing posts or just new ones?

  51. Darren Avatar
    Darren

    Am using WordPress 2.3 and this doesn’t work… I think the new Database layout may have something to do with this…

  52. Moving Services Avatar
    Moving Services

    Hi Vishal,
    Thank you for the sticky.
    I did everything by the book. My WP version is 2.2, sticky=1 etc…
    It still does not show at the top 🙁

    What am I missing?
    Janka

  53. paul Avatar
    paul

    I’m trying to use the plugin but it does nothing. I added STICKY and value 1 to the gamesplanet blogstyle article but it does not stay in front.

  54. nala Avatar
    nala

    Nice Site!

  55. Kym Avatar
    Kym

    Is there a place I can see this in action first before downloading the plug-in? Has an update been made to get more than one sticky on the homepage at a time?

  56. Sendar Avatar
    Sendar

    It is working Great.

  57. stars Avatar
    stars

    I’m running the plugin on my site an it works perfectly, THX very much!!!

  58. Manish Avatar
    Manish

    Hi, Everyone seems to be comparing this plugin with Adhesive. What about WP-sticky ? Better version of Adhesive. So let me ask Vishal, (with due respect for developing this great plugin) How does this plugin compare with WP-sticky ? Can u kindly throw some light on the pros and cons of both.

  59. Edwin Avatar
    Edwin

    This plugin rocks, much better then Adhesive. The problem with Adhesive is that it removes the previous and next navigation link in the footer.

  60. Zaney Avatar
    Zaney

    I am running WordPress version 2.1.2. I activated the plugin, added custom field STICKY with value of 1. I too get two appearances of the post at the top of the page and another at the bottom of the page. Any advice? Email me at zaney@zaneys.com with any suggestions

  61. Daniel Avatar
    Daniel

    WP 2.2
    I’ve made a change on the post and since every trying to fix result in a double apparition of the post…

  62. JoeyP Avatar
    JoeyP

    The sticky post is appearing twice on my home page as well. One at the top and one at the bottom. Does anyone know how to fix this?
    I’m running WP 2.2.
    Thank you.

  63. Daniel Avatar
    Daniel

    WP 2.2
    K2
    I got this message before the post :

    Erreur de la base de données de WordPress : [The used SELECT statements have a different number of columns]
    ( SELECT SQL_CALC_FOUND_ROWS wp_posts.ID, 2 AS N FROM wp_posts WHERE 1=1 AND (post_type = ‘post’ AND (post_status = ‘publish’)) ) UNION ALL ( SELECT wp_posts.*, 1 AS N FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE wp_posts.post_status = ‘publish’ AND wp_posts.post_type = ‘post’ AND wp_postmeta.meta_key = ‘STICKY’ AND wp_postmeta.meta_value = ‘1’ ORDER BY wp_posts.post_date_gmt DESC LIMIT 1) ORDER BY N, post_date DESC ,1

  64. Andrea Avatar
    Andrea

    The plugin works perfectly for me. Thank you!

  65. filipinoprogrammer Avatar
    filipinoprogrammer

    cool thanks for this, i will try it out on my blog

  66. Vishal Monpara Avatar
    Vishal Monpara

    I checked your blog and it is showing perfectly in IE6, FF 1.5. You may try to change your theme.

  67. Jim Bass Avatar
    Jim Bass

    I deleted it, tried again, and the problem was gone. Thanks.

  68. Jim Bass Avatar
    Jim Bass

    Very strange — after adding your plugin, the text style changed to italic all through the site, but only in IE.

    In Firefox, it only italicized the sticky post content.

  69. Robertc Avatar
    Robertc

    Vishal

    Good Day. I’m running wp 2.13 have activated your plugin, picked a post added a field Key=STICKY (all caps) and Value=1 and still no sticky post. Can you help, Do you have any ideas what to do?

    btw it’s a great idea for a post and I can’t wait to get it working.

    Regards,

    Robert

  70. sinouq Avatar
    sinouq

    my sticky post is shown twice in front page.
    How do I fix it ? Please help me..

    thanks before,
    sinouq

  71. Vishal Monpara Avatar
    Vishal Monpara

    Lynda,

    This plugin requires WP 2.1(not even 2.0) or greater version. Make sure that you have latest version.

  72. Lynda Avatar
    Lynda

    Greetings Vishal,
    thanks for this plug in and after I loaded and activated it I still wasn’t able to make it work. I did as you recommend (in the custom field Key=STICKY, Value=1) but it’s still isn’t working. Can you take a look? The WP blog is part of the overall site, Delight.com

    best,
    Lynda Keeler

  73. Vishal Monpara Avatar
    Vishal Monpara

    Robert,

    Sticky Post supports only one sticky post on home page.

  74. Robert Richard Avatar
    Robert Richard

    Hello,

    How can I get more than one sticky on home page? Tried value=2, it did not work. I am capable getting 1 sticky on home page.

    Thanks for support.

    Robert
    Canada.

  75. Ivan Avatar
    Ivan

    How to stick your post? I don’t understand.Give me an example for sticky a post,pls.Thank.

  76. Vishal Monpara Avatar
    Vishal Monpara

    Enrico,

    Thanks for feedback. That problem is solved.

    Ivan,

    Whatever post you want to stick, go to edit page for editing that post. At the bottom, you will see Custom Field, in Key value type STICKY and in Value field type 1, then press Add Custom Field button and save your post. Now that post will be on the top of every post when you visit your blog front page.

  77. enrico Avatar
    enrico

    like adhesive also this plugin have a bad problem of compatibility with wordpress 2.1.2 and up versions, when i activate this plugin, also if i don’t sticky any post, in the webpage the link of the next and previous entries disappear. please can you modify the plugin to delete this big problem?
    thaks in advice!

  78. Vishal Monpara Avatar
    Vishal Monpara

    Advantage: Less MySQL queries + Less php code execution => faster page loading. I think this reason is good enough to use this plugin.

    Moreover Adhesive is definitely using custom field. When we are marking the post as sticky, it sets the custom field.

  79. Travis Avatar
    Travis

    Can you explain the difference between this plugin and the Adhesive plugin? It seems like Adhesive is doing the same thing, but without the use of custom fields. Is there an advantage to your plugin over Adhesive?

Leave a Reply

Your email address will not be published. Required fields are marked *