title: WordPress get_pages Taxonomy Parameter
body: <p>Curious if anyone has tried filtering content via get_pages using a custom taxonomy. I've got a custom post type labeled "clothing" and I'm trying to create a "Previous &amp; Next" navigation by pulling only the "clothing" pieces that have the slug "female" in the "gender" taxonomy.</p>
  
  <p>However, the Previous and Next links are pulling all clothing pieces, including my "mens" pieces.. Anyone have experience with custom taxonomy and get_pages?</p>
  
  <pre><code>&lt;?php
  
  $args = array(
          'sort_column' =&gt; 'menu_order',
          'sort_order' =&gt; 'desc',
          'post_type' =&gt; 'clothing',
          'post_status' =&gt; 'publish',
          'gender'=&gt; 'female'
  );
  
  $list = get_pages($args);
  $pages = array();
  foreach ($list as $page) {
     $pages[] += $page-&gt;ID;
  }
  
  $current = array_search($post-&gt;ID, $pages);
  $prevID = $pages[$current-1];
  $nextID = $pages[$current+1];
  ?&gt;
  
  &lt;div class="post-nav"&gt;
      &lt;?php if (!empty($prevID)) { ?&gt;
      &lt;a href="?pID=&lt;?php echo $prevID ?&gt;" title="&lt;?php echo get_the_title($prevID); ?&gt;" class="left"&gt;&amp;#171; PREVIOUS&lt;/a&gt;
      &lt;?php }
      if (!empty($nextID)) { ?&gt;
      &lt;a href="?pID=&lt;?php echo $nextID ?&gt;" title="&lt;?php echo get_the_title($nextID); ?&gt;" class="right"&gt;NEXT &amp;#187;&lt;/a&gt;
      &lt;?php } ?&gt;
  &lt;/div&gt;
  </code></pre>