How to display code if it is not certain pages?

I just used this code and it works for me. Hopefully it solves your problem.

if( ! is_page( array( 'links', 'student-work' ) ) ) { /* ... */ }

Leave a Comment