Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<nav aria-label="<?php esc_attr_e( 'Pagination', 'my-text-domain' ); ?>">
<?php echo paginate_links( array(
'type' => 'list',
'prev_next' => true,
'before_page_number' => '<span class="screen-reader-text">' . __( 'Page', 'my-text-domain' ) . '</span> ',
'prev_text' => '<i class="fas fa-angle-left"></i><span class="screen-reader-text">' . __( 'Previous page', 'my-text-domain' ) . '</span>',
'next_text' => '<i class="fas fa-angle-right"></i><span class="screen-reader-text">' . __( 'Next page', 'my-text-domain' ) . '</span>',
) ); ?>
</nav>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.