Hi there, Im new to this. I have the following code but want to turn it into an ‘if’ statement using strpos function. Currently it excludes the Newsletter page. I would like the straps function to exclude any page that contains the word Newsletter - like NewsletterJan or NewsletterFeb etc etc
Current Code:
if( $maintenance == ‘disable’ || is_user_logged_in() || $pagenow == ‘wp-login.php’ || is_admin() || $query->query[‘pagename’]== ‘newsletter’) return;
Thanks
Richard