Codul nu e lizibil, alternativa e asta, care e mult mai ok:
Cod PHP:
$where = " WHERE post_type = '$post_type' AND post_status = 'publish' AND (ID < $id OR ID > $id) AND ID <> $id";
Cand folosesti ghilimele duble, variabilele iti sunt citite direct.
Ori ati luat-o voi razna, ori eu am baut prea mult in tinerete.
(ID < $id OR ID > $id) e tot aia cu ID <> $id";
Daca un numar e ori mai mare, ori mai mic decat altu e tot aia cu "e diferit". De ce le bagati pe amandoua acolo?