max_num_pages; $hoho_pg = min( $hoho_state['pg'], max( 1, $hoho_max ) ); $hoho_url = function ( $pg ) use ( $hoho_base, $hoho_state ) { $args = array(); if ( '' !== $hoho_state['q'] ) { $args['q'] = $hoho_state['q']; } if ( 'newest' !== $hoho_state['sort'] ) { $args['sort'] = $hoho_state['sort']; } if ( $pg > 1 ) { $args['pg'] = $pg; } return add_query_arg( $args, $hoho_base ) . '#blog-list'; }; // Page numbers with gaps: 1 … 4 5 6 … 12. $hoho_range = array(); for ( $n = 1; $n <= $hoho_max; $n++ ) { if ( $n <= 1 || $n >= $hoho_max || abs( $n - $hoho_pg ) <= 1 ) { $hoho_range[] = $n; } elseif ( null !== end( $hoho_range ) ) { $hoho_range[] = null; } } ?>

found_posts, 'hoponhopoff' ), number_format_i18n( (int) $hoho_query->found_posts ) ) ); ?>

have_posts() ) : ?>
    posts as $hoho_post ) { echo hoho_article_card( $hoho_post ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?>

.

1 ) : ?>