WP-Sticky New Ideas
I was thinking of not using the wp_postmeta table to tell where a post is sticky or not. Instead, I will use a new table called wp_poststicky to denotes all posts sticky status. Whenever you create a new post, a new row will be created in the wp_poststicky table.
0 will denote normal posts
1 will denote sticky posts
2 will denote announcement post.
Now I need to explain what is the difference between sticky posts and announcements posts.
Currently sticky posts are posts which will appear at the top of the page, I will change that name to be called announcement posts instead.
Now sticky posts will be referred as posts that will only stay on top of all the posts which is posted on the same day as the sticky post. My command of English is not that good, hope you are understand what I mean with the following example:
Announcement
- Post 5 (Announcement Post)
29th March 2007
- Post 6
- Post 7
- Post 8
28th March 2007
- Post 4 (Sticky Post)
- Post 1
- Post 2
- Post 3
As you can see, Post 4 is a sticky post and it will stay on top of all posts that is posted on 28th March 2007 ONLY, posts that are posted after 28th March 2007 (eg. 29th March 2007) will still be on top of the sticky post that is posted on 28th March 2007.
But for Post 5, which is an announcement post, it will stay on top of all posts.
Think of it as a feature in forum softwares in which announcement will appear in all forums and sticky topics will only appear in a particular forum.
This feature will be in the final version of WP-Sticky 1.00. Other features planned for future versions include auto un-announce, auto un-sticky posts after a certain number of days of date.
*UPDATED* 3rd December 2007
Uncle Bubba wrote:
When you login and write/manage a post you’ll see “Post Sticky Status” down in the lower right hand corner. There are three options “Announcement”, “Sticky”, and “None”. Announcement makes a post always on top no matter what. Sticky keeps it at the top of that day’s posts. So, say you made 4 posts on Wednesday and made one sticky, the sticky one would stay on top of Wednesday’s posts. If you then make a post on Thursday it will appear on top of all of Wednesday’s posts but underneath the Announcement post.
 



(147 votes, average: 3.99 out of 5)
February 25th, 2007 at 02:26
So it could be better to have many sticky post and one only announcement post. What do you think?
February 25th, 2007 at 09:37
it is unlimited and up to you to decide =D
February 25th, 2007 at 09:49
I like the new idea
But because I get confused easily…so just wanted to clarify: if someone wanted a post to stay for aperiod between 26th-29th March 2007, they would just change the post date to the 29th March 2007?
Thanks
February 25th, 2007 at 14:47
he should post that under Announcment Post instead of sticky post. Sticky post I think should not have date range.
February 25th, 2007 at 14:50
Nice. So this is more of a daily announcement. Useful for regularly updated sites. What about setting an expiration?
ie I only want the announcement to expire after 1 week?
February 25th, 2007 at 21:53
yea I intend to have X amount of days or a specific date
March 2nd, 2007 at 17:34
[...] Want to know what is the difference between Announcement Posts and Sticky post? Check it out here. [...]
March 3rd, 2007 at 16:17
What do you think about a Sticky-Picture before the post-name? Like:
*picture* Sticky post name
sticky post text…..
March 4th, 2007 at 15:33
hmmm possible but need some hack
March 7th, 2007 at 12:48
Excellent… Have been looking for something like this since upgrading to 2.1. Used to use Adhesive but it is no longer updated so this is a life-saver.
March 10th, 2007 at 13:18
Cool
March 16th, 2007 at 21:42
teste
March 18th, 2007 at 08:02
[...] New features have been added in this plugin, read more on what is the difference between sticky posts and announcements posts from here. [...]
March 23rd, 2007 at 08:20
Maybe the user should be able to decide the sitcky posts scope. It could be category instead of date, for example. It would be very good if the user could choose among some options (category, day, week, month, author,etc).
Think about it!!
March 23rd, 2007 at 12:40
I don’t get you
April 1st, 2007 at 03:38
Hello –
How in the world do I use this plug in? Where do I tell Wordpress to make it sticky? I’m using the Connections theme; will it work with that?
I’ve installed the plugin and activated it, but don’t see any changes on my “Write” or “Manage” posts screens.
Thanks for the plug-in, David
April 1st, 2007 at 15:16
Did u read the readme.html?
April 2nd, 2007 at 11:05
Excellent.!
April 6th, 2007 at 14:47
Good Info. Thank you!
April 7th, 2007 at 18:33
It would be cool if one could choose a different background for the sticky and announcement posts. Then people could see that this post was different, as in not chronological.
April 7th, 2007 at 21:30
in the final version there is 2 condition statement called is_announcement() and is_sticky(), you can use that to determine if a post is sticky or not =D
April 8th, 2007 at 07:54
Thank you very much for sorting this plugin out. Using a combination of if statements I’ve got this going pretty well. Thanks.
April 8th, 2007 at 11:17
no problem =D
April 13th, 2007 at 18:42
hello,
I need some help and info with this plugin.
I am currently planning to make a wordpress based site for a small local newspaper. They would need the ability to choose which articles get shown on the frontpage when they publish them.
So as they do publish twice a week your plugin with the new sticky feature would be great, right? but how would I have to use the loop to get 1 post from each category shown on the frontpage? I mean if I get 1 psot from every category shown on the frontpage, the sticky one will always be shown, right?
Or do you have any other ideas how I could make this?
I thought of using a plugin which shows the latest post from each category on the frontpage, but they don’t like this idea. They need to specify which psot is shown from each vategory, as they would choose the most important and best article for the frontpage…
April 14th, 2007 at 01:17
Easy, on the front page you can use a if(is_sticky()) then show the post, else do not show it.
April 15th, 2007 at 00:32
could you please elaborate a little more? I am not sure I understood you right
did you mean I have to make a loop that shows the latest post from every category and then filter out the sticky ones? how would I only get the latest sticky post from each category?
imagine this: the newspaper has one author for each category, so this guy has to somehow be able to determine which post from the lets say 5 posts per edition he wants shown o nthe frontend. would it be enough if he just made one of them sticky?
what would happen when he writest the next batch of articles, a week later and marks another post as sticky?
what kind of loop would I need on the main page exactly?
April 15th, 2007 at 14:55
You almost got it. You need a loop that perhaps loop through 2 weeks worth of post (the option can be set in wp-admin) and then use the is_sticky() to check out which are the sticky post and display it.
April 16th, 2007 at 23:02
Good post.
April 30th, 2007 at 12:10
This is exactly what I was looking for. I will have to play with this and see how it is best to integrate it.
Thanks,
John Derrick
May 9th, 2007 at 07:14
nice plugin, Thanks!
May 10th, 2007 at 22:10
Hey whats up
May 17th, 2007 at 22:37
Nice plugin. Keep the good work. Thanks a lot.
May 22nd, 2007 at 18:04
Thank you so much.. that information is great and im just teaching some of my work mates how to implement that plugin… love you man
from Johannesburg, South Africa
May 22nd, 2007 at 21:43
thanks guys =)
June 5th, 2007 at 09:55
what plug-in you used in this comment…? where you can display country and the os and browser?
June 5th, 2007 at 14:33
it is call firestats
June 5th, 2007 at 17:00
[...] Want to know what is the difference between Announcement Posts and Sticky Posts? Check it out here. [...]
June 12th, 2007 at 23:01
Thank you!
June 13th, 2007 at 11:12
Why no one use Opera?
June 13th, 2007 at 14:53
i got opera, ie and FF =D
June 15th, 2007 at 05:25
props gamerz. have recently run into your wp tools and can’t believe the selection and quality. you crank these things out! so thanks. if my blogs ever turn a profit it will in no small part be because of these scripts. donations will follow.
June 15th, 2007 at 16:42
thanks =D
June 24th, 2007 at 11:24
I’m using two of your plugins, and they work very well. I pulled out my credit card and was all set to donate $5. Then I saw that for some reason you have a minimum of $10. Since I can’t give you the $5, I’ll just say thank you for the great plugins.
June 24th, 2007 at 12:06
Oh, you can give me $5 if you go to paypal direct =) my paypal email is gamerz84 AT hotmail DOT com =D
July 16th, 2007 at 05:29
Hi, I may have a weird question but I can’t find how this plugin is working… What is the function we call (php get_sticky…) to make the announcement appear exactly where I want it to? I’ve read the readme files, plus all the topics in the forum and I might be dumb but I really don’t get it. I can check the post as a sticky/announcement but it doesn’t appear anywhere in the page since no function is called. And in Options > Sticky I don’t see any way to configure anything. Maybe the solution to this is easy but I’m sorry I really don’t get it. Any help is more than welcome, thanks a lot
July 16th, 2007 at 17:43
You can’t make it appear exactly where you want to. It will always be the first post.
July 16th, 2007 at 23:08
Huh ok… But what if I want the annoucement post to be on the top of the page, way above all the other posts, with a banner in between? So you mean an annoucement will only be on the top of the posts, no way to customise anything from that? So we can’t work with any layout? Your plugin is very cool but wouldn’t it be a good idea to create a function like get_annoucement_post and get_sticky_post we could put exactly where we want them to appear on the page and then define the number on posts to display (and a class) for each function? It could make WP Sticky more flexible. I will use your plugin anyway because it’s great, these are ideas only, since WP Sticky is still in beta version, you care doing something with them ^^
July 17th, 2007 at 00:21
It is possible, you can check whether a post is sticky or announcement using php codes. I think there is some topic posted in http://forums.lesterchan.net.
You can check it out, if you can’t find it, maybe you can create a thread.
August 21st, 2007 at 17:24
wow this plugin rocckz… just what i needed on my site. thanks a lot for this gamerz
September 7th, 2007 at 05:35
Wow…….
September 24th, 2007 at 12:54
Hi,
I’m hoping this will do what I’m hoping I need it to do. I want a plugin where I can choose certain posts and sticky them to the homepage so readers can see the hot topics I want them to see.
Is this going to show at the top of the page or in a side bar?
Can I choose more than one post to sticky?
Is there a place to see what it will look like when installed?
Thank you
September 24th, 2007 at 18:09
It will show on top of the page and if you are using recent post on the sidebar, it will be on top also.
Yes you can.
Check out the Plugin Screenshot link on the right sidebar under Blogroll
September 30th, 2007 at 03:30
GaMerZ, I think what Noryakam meant was this:
Say you wanted to have an explanation post in the archives of each category. This post could tell you what that category was all about. Having it “stick” at the top of each category would be great.
This is the type of functionality I would like, to choose between date and category for the stickiness.
September 30th, 2007 at 03:52
Oops, I see now that the category display is already a feature!
Any way of making that post not show up on the main index page? Also, even with the option to not display date, the date still shows for me, even with the WP default theme.
September 30th, 2007 at 10:55
Unless you do some if else checking.
The default theme by default did not use the_date() and hence it uses the_time() and the_time() will always show.
October 16th, 2007 at 06:44
Hi, it’s working well. I wanted to remove the “Announcement” that appears at the top of the sticky post. I did it at line 113, right after
case 2:
$temp = $before.__(’Announcement’, ‘wp-sticky’).$after;
removing Announcement, but leaving the two single quotation marks.
GaMerZ, let me know if there’s a better way.
October 24th, 2007 at 20:55
it is z good idea,but “posted on the same day”?? the sticky posts?
i think ,the same weeks,may be batter.
do you think?
October 25th, 2007 at 01:13
@TWD: You can change the text via options? WP-Admin -> Options -> Sticky?
@veryid: No, same week will be not much different from announcement. I based my idea on http://csnation.net actually.
October 25th, 2007 at 22:37
Hello
great plugin.
Thanks
November 4th, 2007 at 11:27
Is it possible to have a different announcement post for each category.
Lets says I have 3 categories: Jobs, Real Estate, Health
and I want my visitors to see a different announcement in each of those categories.
Would I be able to create 3 DIFFERENT announcements and assign them to the respective category, so that visitors will see a different announcement post in each of the 3 categories.
Or is it that you can only create 1 announcement post that will be desplayed across all categories?
Thanks
Adam
November 4th, 2007 at 15:39
Adam: Replied You in the forums
November 11th, 2007 at 19:13
nice work. Keep on moving.
November 13th, 2007 at 03:21
[...] may want to read this post by the plugin author if you have not understood the [...]
November 13th, 2007 at 04:43
[...] may want to read this post by the plugin author if you have not understood the [...]
November 19th, 2007 at 10:14
[...] to WP-Sticky New Ideas for more information about the difference. There are also some Options available in Dashboard > [...]
November 23rd, 2007 at 01:21
So is there a way to have two announcements?….or a sticky that stays at the top of the page, but under the announcement?…that would be really nice.
November 23rd, 2007 at 02:25
you can have as many announcement or sticky, it would get sorted by date/time.
December 2nd, 2007 at 23:10
How about this for a description:
When you login and write/manage a post you’ll see “Post Sticky Status” down in the lower right hand corner. There are three options “Announcement”, “Sticky”, and “None”. Announcement makes a post always on top no matter what. Sticky keeps it at the top of that day’s posts. So, say you made 4 posts on Wednesday and made one sticky, the sticky one would stay on top of Wednesday’s posts. If you then make a post on Thursday it will appear on top of all of Wednesday’s posts but underneath the Announcement post.
December 3rd, 2007 at 00:26
Thanks Uncle Bubba =) Updated the post =)
December 23rd, 2007 at 08:43
Great plugin GaMerZ, thanks much.
Suggestion: Have announcements that only show up for their own category. So I could have an announcement in my “tutorials” catagory, and it would only show up when the tutorials category was being viewed; I could have a separate announcement that showed up when I was viewing the “news” category.
Thanks again!
December 23rd, 2007 at 08:45
Just to clarify, right now the categories only feature seems to be mutually exclusive to a regular home page announcement.
December 23rd, 2007 at 13:14
The categories only in wp-admin -> options -> sticky will do the, in this case you need 2 sticky announcement, one in news category, one in tutorial categories.
http://forums.lesterchan.net
December 30th, 2007 at 13:39
[...] to know what is the difference between Announcement Posts and Sticky Posts? Check it out here. Displaying WP-Sticky (Inside The WP [...]
February 8th, 2008 at 05:15
Lester, what if I’ve got multiple authors on my blog? I’d like to keep them from making a post a sticky or an announcement or changing the status of the current sticky
has that been considered?
February 14th, 2008 at 04:41
Lester,
Does sticky work with version 2.33
How do you implement it..I couldn’t see documentation
(except for Uncle Bubba’s comment) ie
When you login and write/manage a post you’ll see “Post Sticky Status” down in the lower right hand corner. There are three options “Announcement”, “Sticky”, and “None”. Announcement makes a post always on top no matter what
I don’t see this after activating plugin
February 14th, 2008 at 11:47
yes it does. This is not a support site, http://forums.lesterchan.net
February 18th, 2008 at 11:14
It will be possible to ad the option to only get a anouncement post in the top of a category selection? would be great to explain wht this category is for.
February 18th, 2008 at 11:16
sorry, i saw in the coments tha this is already implemented.
March 7th, 2008 at 01:40
Is it possible to set a post to status “Announcement” inside one special tag not only inside one special category?
March 7th, 2008 at 02:34
nope
March 7th, 2008 at 03:24
But I think it would be nice to choose between “Categories Only” and “Tags Only”. I know many people who has only Tags anymore - instead of categories.
Ok, I’m not a programmer, I’m just thinking…. Maybe it’s not possible…
March 7th, 2008 at 08:07
I mean it is possible to do it but it is not inside as one of the feature currently, but good suggestion. I will see if i got time to add it in.
March 22nd, 2008 at 20:38
Good job
March 28th, 2008 at 06:51
Hi Lester,
Nice plugin.
Is it possible to make an “announcement post” that will ALWAYS appear as the 2nd, 3rd, or 4th post on a blog’s homepage (blog owner can choose position), and perhaps with the option of having a different colored background behind the announcement if we choose?
I’d be willing to make a nice contribution if this is possible!
Please let me know - e-mail me or post here.
Thanks!
N~
March 28th, 2008 at 09:43
nope, not possible with the position. You can style your own. http://forums.lesterchan.net
March 29th, 2008 at 19:29
Not matter what I select before publishing my post, it is still as “Normal” in post sticky status after publishing my post.
I select Sticky and save but it jumps back to normal. I select Announcement and save but it jumps back to normal after save.
Using WP 2.3.3 and WP-Sticky 1.10.
May 10th, 2008 at 04:48
[...] info kun je vinden op het blog van Lester Chan [...]
May 19th, 2008 at 01:28
Exactly what I was looking for.
Annoucenments are useful in any sort of blog. It should be nice, in some time, to became a WP built-in feature.
Thanks for the plugin.
May 29th, 2008 at 21:37
Your WP-Polls and WP-Sticky plugins have saved me time and made me money. I’ve just donated some cash, keep up the good work, you’re a champion.
May 29th, 2008 at 22:24
Thanks for the donations =D
June 8th, 2008 at 19:45
I think the idea is great however I don’t like the “sticky of day” very much. can we make it into “sticky of a Category” thing? Maybe there is an option to choose between the two.
Your plugins are great. you are a genius, man
June 8th, 2008 at 22:08
You can choose Announcement instead and set to Categories only in the options
June 24th, 2008 at 06:40
mDwpgd Blogs rating, add your blog to be rated for free:
http://blogsrate.net
July 18th, 2008 (4 weeks ago) at 15:31
thanks, I’ve been more a week looking for this, and now i got it.