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.

1 Star2 Stars3 Stars4 Stars5 Stars (179 votes, average: 4.00 out of 5)

94 thoughts on “WP-Sticky New Ideas”

  1. 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.

  2. 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!

  3. 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?

  4. 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

  5. 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.

  6. Is it possible to set a post to status “Announcement” inside one special tag not only inside one special category?

  7. 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…

  8. 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.

  9. 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~

  10. 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.

  11. 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.

Comments are closed.