Closed benbrehaut closed 7 years ago
function sticky_posts( $classes ) { if ( in_array( 'sticky', $classes, true ) ) { $classes = array_diff($classes, array('sticky')); $classes[] = 'post--sticky'; } return $classes; } add_filter('post_class','sticky_posts');