I have the widget logic widget installed on my site. I am using the following code inside it
is_category(6) || is_page(array(1203, 1436, 1448))
However the widget does not show up for page-id=1436, page-id=1448
WHy is this happening?
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.
EDIT : Just checked the
is_page()function in WordPress core and no : it does look into an array that can be an array of IDs (within_array) (see wp-includes/query.php, line 3374). (array capability added in WordPress 2.5). As Matanya says, you have to use it outside the loop.