Skip to main content

Timeline for Exclude expired sticky posts

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Nov 19, 2021 at 13:49 comment added shaneonabike Wow this is brilliant thank you!
Dec 16, 2015 at 12:37 comment added Pieter Goosen The code in my approach comes from unstick_post. The issue is, when using unstick_post, you are calling get_option( 'sticky_posts' ) for every post if you need to unstick more than one post. So my method is a bit faster than calling unstick_post on every post
Dec 16, 2015 at 12:34 comment added Christopher Thank you for your answer! Both answers are good approach and works well for me. In the meantime i found a plugin (el.wordpress.org/plugins/expire-sticky-posts) which use the unstick_post function with the filter the_title. I would like your opinion about this approach.
Dec 16, 2015 at 12:11 vote accept Christopher
Dec 10, 2015 at 9:17 history edited Pieter Goosen CC BY-SA 3.0
added 3544 characters in body
Dec 7, 2015 at 9:25 history edited Pieter Goosen CC BY-SA 3.0
deleted 35 characters in body
Dec 7, 2015 at 9:19 history answered Pieter Goosen CC BY-SA 3.0