in wordpress c’è il widget per creare in sidebar un elenco degli ultimi articoli pubblicati…
se io però volessi che in tale elenco non compaia l’articolo che sto visualizzando in quel momento?
cioè so teoricamente come si fa:
dovrei ottenere l’id del post visualizzato (e questo so come si fa), assegnarlo ad una variabile (semplice) e dire alla funzione che stampa l’elenco di escludere quella variabile…solo che non riesco a trovare la funzione giusta, credevo di averla trovata dentro il file wp-include/default-widget.php ma non riesco a capire come lavora e quindi se è la funzione giusta e in caso come modificarla…
qualcuno può aiutarmi??