You appear to be a bot. Output may be restricted
Description
Display "s to e of n"
Usage
$ID = oik_navi_s2eofn_from_query( $atts );
Parameters
- $atts
- ( array ) required –
Returns
ID start number (defaults to 1 )Source
File name: oik/shortcodes/oik-navi.phpLines:
1 to 18 of 18
function oik_navi_s2eofn_from_query( $atts ) { $bw_query = bw_array_get( $atts, "bw_query", null ); $start = 1; bw_trace2( $bw_query, "bw_query", false, BW_TRACE_VERBOSE ); if ( $bw_query ) { $page = bw_array_get( $atts, "paged", 1 ); $posts_per_page = bw_array_get( $atts, "posts_per_page", null ); if ( $posts_per_page ) { $count = $bw_query->found_posts; bw_trace2( $bw_query->found_posts, "found_posts", false ); $pages = ceil( $count / $posts_per_page ); $start = ( $page-1 ) * $posts_per_page; $end = min( $start + $posts_per_page, $count ) -1 ; bw_navi_s2eofn( $start, $end, $count ); } } return( $start ); }View on GitHub View on Trac