Support » Fixing WordPress » How do I unsticky posts? (PHP code)

Viewing 2 replies - 1 through 2 (of 2 total)
  • For those looking for this as well, here is what I found:

    update_option('sticky_posts', $Array_of_IDs_to_stay_stickied);

    The array looks like:

        [0] => 1111
        [1] => 1112
        [2] => 1113

    Where 1111, 1112, & 1113 are the post ID’s of the sticky posts you want to keep.

    Not exactly what I was looking for but it will do.

    This will return an array will all existing sticky posts ID’s:


    For those who are looking for a solution to the problem i had before, I have made a plugin that does exactly what I was asking for.

    You can find it here:


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I unsticky posts? (PHP code)’ is closed to new replies.