[WORDPRESS] [Funzione] get_categories()

get_categories() (funzione WordPress) restituisce, sotto forma di array, la lista delle categorie.

tips&tricks

Sintassi

get_categories()
parametro descrizione
$XXX XXX

Esempi

get_categories();
/* RISULTATO
Array
(
    [0] => WP_Term Object
        (
            [term_id] => 1
            [name] => Uncategorized
            [slug] => uncategorized
            [term_group] => 0
            [term_taxonomy_id] => 1
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 1
            [filter] => raw
            [cat_ID] => 1
            [category_count] => 1
            [category_description] => 
            [cat_name] => Uncategorized
            [category_nicename] => uncategorized
            [category_parent] => 0
        )

)
*/

Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

funzioni wordpress, wordpress

Related Articles

0 Comment

Rispondi