is_sticky() (funzione WordPress) verifica se il post è stato marcato come “in evidenza”. Restituisce un valore booleano.
tips&tricks
Sintassi
is_sticky($post_ID)
| parametro | descrizione |
|---|---|
| $post_ID | L’ID del post da processare. In mancanza, il post corrente |
Esempi
is_sticky(13); // true (1)
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment