Skip to main content
Tweeted twitter.com/StackWordPress/status/1007898258549739520
added 219 characters in body
Source Link

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class?

EDIT

Currently, I am using the band-aid method below.

$return = paginate_links( $arg );
echo str_replace( "<ul class='page-numbers'>", '<ul class="pagination">', $return );

Is there any better way?

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class?

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class?

EDIT

Currently, I am using the band-aid method below.

$return = paginate_links( $arg );
echo str_replace( "<ul class='page-numbers'>", '<ul class="pagination">', $return );

Is there any better way?

Source Link

Changing pagination list class

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class?