Archived topic
Pagination - GridBuilder Facet
5 replies · Started by Prabakaran on July 11, 2021
Hello,
I am using Wp-GridBuilder to filter my posts (CPT) in archive pages and the live site address is https://nviewscareer.com/job/.
The archive page created using Block element>Content Template with the facets filter via another Block element>Hook>hook:inside_site_container and Block element>Archive Navigation>hook:inside_site_container.
Note: I have followed the documentation of WP-Gridbuilder (https://docs.wpgridbuilder.com/resources/guide-filter-archive-pages/) to remove the native pagination and added the pagination facet using different approaches (Block element>Archive Navigation>hook:after_main_content; after_content, inside_container; inside_site_container) in the archive page.
Now the query is, how to display the pagination facet at the bottom of the archive content. I have tried Block element>Archive Navigation>hook:after_main_content as given in the documentation. It works for the first page. But, if I choose page 2, the facet is not loaded. So, I have contacted the WP-Gridbuidler for the solution. They have suggested the following
You have added a facet inside the content to filter. So, it will not work.
The pagination facet is at the same level as the posts. The facets should be outside the content container.
Or you should wrap your posts in a container.
Since I am not a superuser to handle the above, please help me to sort it out.
Hi there,
reading that and from the little i understand of what that plugin requires - the Block element>Content Template isn't the right thing to use. As its injecting that content inside the Loop.
I think you would need to create a PHP Template for that specific purpose.
Thank you very much for your reply.
Do you have any reference material to sort out?
Sorry i may have misread your query in the first place....
So if the Paging Facet has to be outside the main content container - then what about the before_footer hook ?
Thank you very much.
It is working properly.
I have missed this option to try out.
Sorry for the inconvenience caused.
No problems - apologies i misread the question.
Glad to see its working!!!