Home › Forums › Support › Removing pagination This topic has 10 replies, 4 voices, and was last updated 1 year, 7 months ago by David. Viewing 11 posts - 1 through 11 (of 11 total) Author Posts October 8, 2018 at 12:53 am #695835 Vinay By default pagination is shown on front page, categories, tags, etc like 1 2 … 76 Next. How it can be removed from front/home page using php. GeneratePress 2.1.4GP Premium 1.7.2 October 8, 2018 at 1:38 am #695859 DavidStaff Customer Support Hi there, so would you want infinite scroll scroll on the front page? Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ October 8, 2018 at 2:09 am #695880 Vinay No i don’t want infinite scroll October 8, 2018 at 2:12 am #695884 DavidStaff Customer Support So the front page will display a limited number of posts or all of them? Sorry just need to know so we can provide the best solution. Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ October 8, 2018 at 2:28 am #695900 Vinay Yes just lastest few say 10 posts October 8, 2018 at 9:56 am #696352 Vinay Any one please reply October 8, 2018 at 10:46 am #696412 TomLead Developer Lead Developer Hi there, Try this function: add_action( 'wp', function() { if ( is_front_page() ) { add_filter( 'generate_show_post_navigation', '__return_false' ); } } ); Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Ongoing Development: https://generatepress.com/ongoing-development September 16, 2020 at 10:35 am #1446148 Javier Lorente This function work on generatepress 2.x but not in 3.x. will work in 3.x.x? September 16, 2020 at 1:57 pm #1446349 LeoStaff Customer Support Looks like you’ve discovered a bug and we’ve fixed that in the next Alpha version: https://github.com/tomusborne/generatepress/commit/8cb4f2590eb760be9a1ac8c71736a2455080aab6 Thanks!! Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ October 15, 2020 at 1:50 am #1489873 Manuel The filter that still works for me in version 3.0 is this one: add_filter( ‘generate_show_post_navigation’, ‘__return_false’ ); October 15, 2020 at 2:55 am #1489968 DavidStaff Customer Support Thanks for letting us know – the bug was patched before the final release 🙂 Documentation: http://docs.generatepress.com/ Adding CSS: http://docs.generatepress.com/article/adding-css/ Author Posts Viewing 11 posts - 1 through 11 (of 11 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In