[Resolved] num_results and looping
I’m using num_results to return 2 previous and 2 next links and looping through a custom sort order. This should always return 4 results, but I’m getting 2 instances which don’t.
On my second to last post, the first post is missing. Next should return the last post and the first post.
On my second post, the last post is missing. Previous should return the first post and the last post.
My parameters, which are identical for next and previous:
'order_by' => 'menu_order', 'order_2nd' => 'post_title', 'in_same_tax' => 'productline', 'ex_cats' => $exclude, 'ex_cats_method' => 'diff', 'before' => '<span class="nav-next">', 'after' => '</span>', 'return' => 'object', 'loop' => true, 'num_results' => 2
Anything I’m doing wrong?
- The topic ‘[Resolved] num_results and looping’ is closed to new replies.