I am trying to exclude certain posts by ID from showing a plugin and in the conditional statement I have the following:
!is_single( array(get_option('ignore_posts')) )
with ignore_posts holding the array of numbers stored as 150,160,174,177
The issue is that it works to exclude post with ID 150 but none after that. Also if I change the order to make post ID 160 first then 160 is the only one to function as expected.
Thank you in advance for any insight you have.
- The topic ‘!is_single(array()) Not Working’ is closed to new replies.