Просмотр новости

Найдите то, что Вас интересует

Taxonomy Term redirect to filterable Post Type Archive

Дата публикации: 22-06-2026 10:21:14

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?

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Taxonomy Term redirect to filterable Post Type Archive0022-06-2026
2Taxonomy Term redirect to filterable Post Type Archive0022-06-2026
3Question about filtering default post categories with CS Forms0021-06-2026
4Question about filtering default post categories with CS Forms0022-06-2026
5Question about filtering default post categories with CS Forms0022-06-2026
6Question about filtering default post categories with CS Forms0021-06-2026
7Archive page + CS form with error using a loading area element0021-06-2026
8CS Forms & Off Canvas0022-06-2026
9Question about filtering default post categories with CS Forms0022-06-2026
10CS Forms & Off Canvas0022-06-2026

Классификация: Общество. Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 0. Источник: theme.co.