Skip to content

RSS

#9 - Of the uselessness of feeds with only summaries

Within Inoreader, the feed reader I use and recommend, there is the magnificent armchair button: it is the button that automagically retrieves the full text of the article without going to the site.
This function is common to many other feed readers; simply, it is about to become entirely useless for distributing feeds with only the summary to bring readers to the site (and,...

View articles from a feed on a WordPress page

E' possibile visualizzare articoli da uno o più feed esterni in una pagina utilizzando un template di pagina, la funzione fetch_feed di WordPress e, se è necessario che siano aggiornati spesso, il filtro wp_feed_cache_transient_lifetime. Il feed potrebbe essere ad esempio il nostro account di Twitter (che risponde a un link simile...

Highlighting images in the WordPress feed

Poniamo che vogliate recuperare da un vostro sito in PHP (non necessariamente in WordPress) titolo, permalink, riassunto e immagine di uno o più post di un vostro blog in WordPress. Se la necessità fosse poi di impaginare questi elementi a piacimento nella vostra pagina del sito, non è una buona...

How to read RSS feeds with PHP 5

Riporto un semplice esempio di utilizzo della funzione simplexml_load_file (solo per PHP 5) per fare un parser alternativo a MagpieRSS (che però ha il pregio di essere compatibile anche con altre versioni di PHP e di essere stato fatto apposta per i feed). Spiegazione veloce del codice: nel primo esempio,...