Getting paginate_links() ‘end_size’ to display none
Here’s one suggestion: First we need to let paginate_links() return an array instead of a HTML list: ‘type’ => ‘array’, Then we can grab the output with: $paginate_links = paginate_links( $paginationArgs ); The plan is then to filter out the wanted links. Let’s get the current value: $c = $paginationArgs[‘current’]; We construct the search filter … Read more