Advertisement
  1. Code
  2. WordPress

Quick Tip: How to Target WordPress Sticky Posts

Scroll to top
Read Time: 1 min

As of WordPress 2.7, we can now assign "sticky posts." This feature affords us the ability to "pin" postings to the top of our blog. But, how can we specifically target these sorts of postings from within our stylesheet?

Notice the pretty ribbon that's attached to this particular posting? That's thanks to stickied posts!

Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Code tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.