Retrieves the terms associated with the given object(s), in the supplied taxonomies.
$object_ids, $taxonomies, $args = array(
Sortie :
@param int|int[] $object_ids The ID(s) of the object(s) to retrieve. @param string|string[] $taxonomies The taxonomy names to retrieve terms from. @param array|string $args See WP_Term_Query::__construct() for supported arguments. @return WP_Term[]|int[]|string[]|string|WP_Error Array of terms, a count thereof as a numeric string,
// Utilisation de la fonction wp_get_object_terms
$result = wp_get_object_terms($object_ids, $taxonomies, $args = array();
if ($result) {
// Votre logique ici
}
Chargement des actualités...