WP_Query post__not_in not working

This attribute needs to be fed an array, even if a single item is being called, or it will not function properly:

global $post;
		$args = array(
			'post_type' => 'page',
			'posts_per_page' => -1,
			'post_parent' => $post->ID,
			'post__not_in' => array(6),
			'orderby' => 'menu_order',
			'order' => 'ASC'
		$who_is = new WP_Query($args);


Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.