Feature Request: is_sticky in dynamic content

Apologies if I’ve missed some way to do this already, but I cannot for the life of me figure it out :man_shrugging:

Anyway, the use case is that I have some posts that are marked as Sticky using the standard WP checkbox. And when displaying a loop of articles, I’d like to add a little “Featured” tag on them to help them stand out. So, I was looking to tap into the is_sticky boolean in some way.

1 Like

It’s stored in the options table I guess. I can add in Dynamic Content and a condition for the next release. Great to hear from you, have a great day.

The Twig advanced integration can also access this.

{{ function('is_sticky', post.id) ? 'sticky' : 'not sticky' }}
1 Like

Amazing, thanks @charlie! And have a great day, yourself!

1 Like