has_term()
(funzione WordPress) verifica se un post ha determinati termini relativi alle sue tassonomie. Restituisce un valore booleano.
tips&tricks
Sintassi
has_term($termine[facoltativo], $tassonomia[facoltativo], $post[facoltativo])
parametro | descrizione |
---|---|
$termine | XXX |
$tassonomia | XXX |
$post | XXX |
Esempi
has_term(); /* RISULTATO XXX */
Contenuti correlati
- CSS
- HTML
- JavaScript
- jQuery
- PHP
- SQL
- WORDPRESS
0 Comment