You appear to be a bot. Output may be restricted
Description
Return the start item for a paginated ordered list
Usage
$integer = bw_navi_start_from_atts( $atts );
Parameters
- $atts
- ( array ) required –
Returns
integer the start indexSource
File name: oik/shortcodes/oik-navi.phpLines:
1 to 12 of 12
function bw_navi_start_from_atts( $atts ) { $start = 1; $page = bw_array_get( $atts, "paged", 1 ); if ( $page > 1 ) { $posts_per_page = bw_array_get( $atts, "posts_per_page", null ); if ( $posts_per_page ) { $start = ( $page-1 ) * $posts_per_page; $start++; } } return( $start ); }View on GitHub View on Trac