This page redirects to an external site: https://developer.wordpress.org/reference/functions/sticky_class/
Languages: English • class 日本語 (Add your language)
Displays the Sticky Posts class on a post if applicable. This tag must be within The Loop.
<code style="color: #000000"> <span style="color: #0000BB"><?php sticky_class</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span> </code>
This tag has no parameters.
<div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">
Provides a sticky class to each post that it applies to: