Hi,
I’ve got the following question.
What I have:
Posts Archive Layout with CS Forms facets.
Single Post Layout with current post taxonomy terms buttons.
What I want to achieve:
We do not want to make separate pages for each post category. Instead, we want the buttons for the current post’s tags to take us back to the main blog page. These buttons should filter the posts when the archive page is opened based on the tag we click.
The challenge:
In general I managed to do what I wanted. However there is one issue I haven’t found a solution for.
Let’s say CS Forms adds the following tail to the Blog Post Archive URL when a category term is clicked:
?search=&cs-form-id=posts-filter&post-category=33&paged=1
To recreate full redirect URL at the Single Page Layout I add the following link:
/news/?search=&cs-form-id=posts-filter&post-category={{term.id}}&paged=1
When clicked it filters the post loop and the post category needed gets preselected. However, the full URL after the redirect gets changed a bit:
/news/?search&cs-form-id=posts-filter&post-category=33
As we can see ‘=’ signe gets cut off after the search parameter as well as &paged=1 in the end of the URL tail. If I click the Reset Filter button right after the ridirect it doesn’t influence the posts looper. First we need to do some action with the filter and only then to reset it. Is that because the way it is coded or because the URL tail differs after single post page redirect? Is there a way to make Reset Button work right away even if the filters haven’t been used on archive page load?
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Taxonomy Term redirect to filterable Post Type Archive | 0 | 0 | 22-06-2026 |
| 2 | Taxonomy Term redirect to filterable Post Type Archive | 0 | 0 | 22-06-2026 |
| 3 | Question about filtering default post categories with CS Forms | 0 | 0 | 21-06-2026 |
| 4 | Question about filtering default post categories with CS Forms | 0 | 0 | 22-06-2026 |
| 5 | Question about filtering default post categories with CS Forms | 0 | 0 | 22-06-2026 |
| 6 | Question about filtering default post categories with CS Forms | 0 | 0 | 21-06-2026 |
| 7 | Archive page + CS form with error using a loading area element | 0 | 0 | 21-06-2026 |
| 8 | CS Forms & Off Canvas | 0 | 0 | 22-06-2026 |
| 9 | Question about filtering default post categories with CS Forms | 0 | 0 | 22-06-2026 |
| 10 | CS Forms & Off Canvas | 0 | 0 | 22-06-2026 |