Howdy! Not all of this stuff is what I'm great at, but I can at least poke a prod a bit in hopes of bringing something to light.
Can you describe how it doesn't work? Does it not display at all or does paging not work right or something else?
A couple ideas/questions to kick things off:
- I'm a little confused by the cat => -0. Is there even a category with the ID 0? Uncategorized is 1. I think cat=> -0 means show all posts NOT in cat 0. Is that what you're intending?
- Regarding pagination, I believe you should be using
get_query_var('page') instead of
get_query_var('paged') (no "d" in "page"). (See: End of Pagination Section on WP_Query codex page.)
- I'm not that familiar with
wp_pagenavi() and pagination drives me crazy but do you even need the paged var in your wp_query call at all if you're using
Finally, if you decide you do need the 'paged' argument, I think you'd want to do it this way (see: this):
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$my_query = new WP_Query( array( 'cat' => -0, 'post_type' => 'endo_contribute', 'posts_per_page' => 10, 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_key' => 'endo_contributor_last_name', 'paged' => $paged ) );
Hopefully that gives you a couple places to look. Let me know if you can rule any of this stuff out or in and we can keep digging.