Description
Get the ID of the next post in menu order.This may be the first child OR the next one at this level or the next one at the previous level OR we may go back round to the beginning
Usage
oikp_next( $post );Parameters
- $post
- ( mixed ) required –
Returns
voidSource
File name: oik-presentation/includes/oikp-lazy-nav.incLines:
1 to 13 of 13
function oikp_next( $post ) { global $oikp_post_tree; if ( !isset( $post_tree ) ) { oikp_tree( $post->post_type ); } bw_trace2( $oikp_post_tree ); $key = array_search( $post->ID, $oikp_post_tree); bw_trace2( $key, "key", false ); $key++; $result = bw_array_get( $oikp_post_tree, $key, $oikp_post_tree[0] ); return( get_permalink( $result) ); }
Invoked by
Calls
1 to 2 of 2
Call hooks
API Letters:
