Change the text inside the button (Previous Item is the text inside the button) to the Title of the Previous item in the collection

Question:
I have imported items to the collection and the items are displayed as blog post. On each post I have use previous and nextr buttons to navigate between the previous and next items respectively. How to change the text inside the button (Previous Item is the text inside the button) to the Title of the Previous item in the collection in WIX

Product:
Wix Studio Editor

What are you trying to achieve:
change the text inside the button (Previous Item is the text inside the button) to the Title of the Previous item in the collection

To dynamically display the titles of the previous and next items in a Wix Studio collection within the “Previous” and “Next” buttons, you can use the Wix Data API and Wix Code (Velo) to retrieve the titles and set them as the button text.

If you need help with the code or further assistance, feel free to reach out to me!