I'm trying to exclude certain posts in Wordpress using an array. I can successfully remove one of the posts by doing this:
<?php if ( $post->ID != '443' ) { ?>
...
<?php } ?>
I'm trying to create an array of posts that I want to remove and have this:
<?php $excluded = array('443', '479', '464', '589', '333', '296', '381', '405', '252', '301', '291', '306', '632', '634', '636', '313', '317', '389', '410', '417', '321');
if ( $post->ID != $exclude ) { ?>
...
<?php } ?>
I've been trying to teach myself PHP and am struggling with arrays, any help?