1. Code
  2. WordPress

Quick Tip: How to Target WordPress Sticky Posts

Read Time:1 minLanguages:

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!

Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.