ciao ragazzi,
ho una pagina wp che legge dei dati da una tabella aggiuntiva…. ho la necessità , se non sono soddisfatti delle condizioni in db, di reindirizzare il risultato a una pagina 404 ma non riesco a fare il redirect… mi tira fuori il solito
Warning: Cannot modify header information - headers already sent by
posto il codice con la condizione:
<?php
if ($pubblicazione != 1) {
header("Location: 404");
}else{
bla....bla..bla....bla
}
?>
vi ringrazio anticipatamente per i vostri suggerimenti...
lory