Site logo

Archived topic

Remove Pagination in HTML source code

14 replies · Started by Israel on September 1, 2022

Viewing posts 1–15 of 15

Hi,

I've added this code add_filter( 'generate_show_post_navigation', '__return_false' ); in code snippets and it removed the pagination on front end.

However, the pagination is still showing on the html code. is there a way to remove it entirely?
This is for the pagination in my Custom Archive Post Category with over 600 posts. I'm using CPT UI plugin.

Hi there,

The snippet should remove the pagination from HTML, can you link us to your site where we can see the issue?

Hi, I sent the site issues privately. Thanks

Hi Israel,

Out of curiosity, why not just use a static page for the CPT in order to avoid the default loop?

Hi Fernando,

Sorry but setting the CPT into a static page is not an option. Thanks

Can you try clearing cache?

Moreover, do you have a custom template for this archive?

Hi Fernando,

I sent the details in private. Thanks

Hi there,

can you disable the Block Element Content Template for that archive.

Hi David,

I tried disabling the Content Template, the problem is still there. Thanks

Do you have infinite scroll / load more enabled in the Customizer > Layout > Blog ?

Yes sir, the "Use infinite scroll" box is checked. "Use button to load more posts" box is unchecked.

I also tried both checked and both unchecked. Still the same. I can still see the pagination in the html code.

Hi David, I sent you a message in private.

Hi Fernando, I sent you the login credentials. Thanks

Where did you send it?

Can you share the credentials here through the Private information field?

This archived topic is closed to new replies.