WordPress: Multiple conditional statements not working

WordPress: Multiple conditional statements not working

I'm trying a simple multiple conditional statement which should work fine with PHP but WordPress says no. What am I missing?

<?php if (is_page('sample1') || is_page('sample2') || is_page('sample3') ||     is_page('sample4')) { ?> include this <?php } else { ?> include this instead <?php } ?> 

OpenSource alternatives on XCloner [closed]


What is the difference between developing a Drupal module and a WordPress plugin?
Undefined function?.
How do I call functions from my Plugin in WP template?
How are you calling footer.php from your theme?.
wordpress extended_valid_elements for script tag?

Plugin Suggestions - Wordpress as a Membership Directory

How to query posts for a custom post type in a custom taxonomy ? in wordpress 3.0


Why my wordpress plugin settings shows up for users other than administrator?
It has nothing to do with the code you posted.

Is there a way to redirect users who are not administrator from WordPress wp-admin?
It has everything to do with the path to the footer or where you are trying to load it within the page lifecycle.

Also check if the path is right..

70 out of 100 based on 15 user ratings 690 reviews