Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




sticky_class [ WordPress Function ]

sticky_class ( $post_id = null )
Parameters:
  • (int) $post_id An optional post ID.
Defined at:



Display "sticky" CSS class, if a post is sticky.

Source


<?php
function sticky_class$post_id null ) {
    if ( !
is_sticky($post_id) )
        return;

    echo 
" sticky";
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics