comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?> Both comments and pings are currently closed.