Curious if anybody has attempted blocking content via get_pages utilizing a custom taxonomy. I have got a custom publish type labeled "clothing" and I am trying to produce a "Previous &lifier Next" navigation by tugging just the "clothing" pieces which have the slug "female" within the "gender" taxonomy.

However, the prior and then links are tugging all clothing pieces, including my "mens" pieces.. Anybody have knowledge about custom taxonomy and obtain_pages?

<?php

$args = array(
        'sort_column' => 'menu_order',
        'sort_order' => 'desc',
        'post_type' => 'clothing',
        'post_status' => 'publish',
        'gender'=> 'female'
);

$list = get_pages($args);
$pages = array();
foreach ($list as $page) {
   $pages[] += $page->ID;
}

$current = array_search($post->ID, $pages);
$prevID = $pages[$current-1];
$nextID = $pages[$current+1];
?>

<div class="post-nav">
    <?php if (!empty($prevID)) { ?>
    <a href="?pID=<?php echo $prevID ?>" title="<?php echo get_the_title($prevID); ?>" class="left">&#171; PREVIOUS</a>
    <?php }
    if (!empty($nextID)) { ?>
    <a href="?pID=<?php echo $nextID ?>" title="<?php echo get_the_title($nextID); ?>" class="right">NEXT &#187;</a>
    <?php } ?>
</div>

Used your code along with this post on advance taxonomy querying, and emerged with this particular:

<?php 

$myquery = array(
    'post_status' => 'publish',
    'posts_per_page' => -1,
    'meta_key' => 'whatever',
    'orderby' => 'meta_value',
    'order' => 'DESC',
    'post_type' => 'your_post_type',
);

$myquery['tax_query'] = array(
    array(
        'taxonomy' => 'your_tax',
        'terms' => array('your_term'),
        'field' => 'slug',
    ),
    array(
        'taxonomy' => 'your_other_tax',
        'terms' => array('your_other_term'),
        'field' => 'slug',
    ),
);

$queryObject = new WP_Query($myquery); 

while( $queryObject->have_posts() ) : $queryObject->the_post();

$posts_array[] = $post->ID;

endwhile;

wp_reset_query();

$current = array_search($post->ID, $posts_array); // returns key
$prevID = $posts_array[$current - 1]; // get value from key 1 before
$nextID = $posts_array[$current + 1]; // get value from key 1 after

$prevLINK = get_permalink( $prevID );
$nextLINK = get_permalink( $nextID );

$prevTITLE = get_the_title( $prevID );
$nextTITEL = get_the_title( $nextID );

?>

<div class="post-nav">
    <?php if (!empty($prevID)) { ?>
        <a href="<?php echo $prevLINK; ?>" title="<?php echo $prevTITLE; ?>" class="left">&#171; PREVIOUS</a>
    <?php }
    if (!empty($nextID)) { ?>
        <a href="<?php echo $nextLINK; ?>" title="<?php echo $nextTITLE; ?>" class="right">NEXT &#187;</a>
    <?php } ?>
</div>

Works best for me and it is pretty freaking awesome... using the advanced taxonomy querying Otto describes, you are able to really control individuals next/previous links very well. I would not happen to be in a position to figure this out without your original code though, so mad props for you and Otto!

I am going to tweak this even more by auto discovering the terms in the page... get_the_term_list() might work.