how can I keep the p= and add an OR /20 on it ? I mean I want to check both strings.
<?php if ( false==stripos(get_permalink($post->ID), 'p=') ) { ?>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot test for two portions of strings with a single
stripos()call : you have to callstripos()twice.Depending on what you exactly want to achieve (not sure I really undertand the question), you’ll combine those two with
&&or||:or :
As a sidenote : you should use
===or!==, asstripos()can return0orfalse— and those don’t have the same meaning.