Template Redirect for WPGridbuilder

tdrayson

When creating the SnippetClub website, I used WPGridbuilder to enable AJAX filtering on the blog page. One issue this causes is filtering archive templates for search, categories and terms don’t work properly.

As a work around, I created a snippet that redirects users to the blog page, but converts the search or categories to use the WPGridbuilder facet query params.

The Snippet

Members content only

Become a SnippetClub member to gain instant access to this tutorial plus tons more premium content.

Already a member? Log in below.

Login Form

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

Newsletter

🔒I won't send you spam, I promise