Is there a way of hiding the prev button for a query if it’s the first page and there’s no previous page, and respectively hide next button if it’s the last page?
Looking through the conditions element and can’t see anything there.
@Louis, will there be a solution for this?
When using the “standard” Gutenberg previous/next ‘Post Navigation Link’ it hides the respectively prev/next button, but, you can’t edit these standard Gutenberg blocks.
@beleancristian was referring to the pagination ensemble, but it seems that you are referring to the Prev/Next links, for which currently there are no conditions available.
Feel free to create a new feature request for this, so that we can keep an eye on it!
Im having a lot of trouble figuring this order out.
im in a cpt single post. i want to add previous and next (nestable so i can insert elements i want). anyone have screenshots what and how to select things? ive tried with pagination wrapper but it keeps loading the same page.
As long as you are within the div context, you can link as many elements as you want (just like the button), or you can wrap all of those elements in another div and link that (to note again - this works as long as this is within the context div), it is entirely up to you.