E
E
Evgeniy2021-11-08 15:45:33
WordPress
Evgeniy, 2021-11-08 15:45:33

How to add buttons to end/beginning in WP pagination?

Good afternoon. I can't find information on this topic. I'm using the built-in the_posts_pagination() function. Inserted forward and backward buttons using next_posts_link() and prev_posts_link(). But I don't know how to add links to the end and to the beginning. Can't find this information anywhere. Who knows, please write.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy, 2021-11-10
@Evdokim001

I ended up using JS/jQuery. When you click on the "end" button, the click on the most recent page is triggered. And when you click "on the beginning", the click on the very first page is triggered.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question