I am using eleven 40 Pro theme. I want to show Disable “Previous Page” pagination on homepage. As for example if I am on the homepage it only show next button.
How can I display “Previous Page” button on homepage without using plugin?
Can someone help me please?
Thanks & Regards
Like IF page 1 is selected, get the previous button and remove it
You can use the filter functions to add and remove. See the Wordpress guide on this and should be pretty easy to do https://developer.wordpress.org/reference/functions/paginate_links/
Is it not possible using with PHP? I want to implement “Previous” pagination on 1st page and “Next” button on the last page.
Sorry to say, I am a beginner to coding. I tried some codes in snippet as per your reference, didn’t work.