Come sapere se get_posts() non è riuscito?
- Se ci sono post, restituisce un array di post.
- Se non ci sono post restituisce un array vuoto().
- Se ci sono post, ma l'interrogazione del database fallisce (e diciamo, 99.999% volte restituisce corretto, ma questa volta fallisce per qualche motivo), restituisce un array vuoto.