Answer the question
In order to leave comments, you need to log in
How to write your title and description for a page generated by a get request?
Good afternoon, dear colleagues!
Such a situation - there is a category page (shop on Woocommerce), to which an attribute filter (usual WOOF) is attached. Accordingly, when selecting parameters in the filter, a page like https://site-name/cat-name/swoof=1&pa_diametr=12&p... is generated . And everything would be fine, but the title and description for all options for filtering pages of the cat-name category are the same ... Which, as the SEO specialist says, is very bad for SEO, since there are duplicates ... You can, of course, stupidly hide from the PS through noindex nofollow all filter pages (which is done for now). But is there any way to solve this problem?
For myself, I broke this problem into two stages:
a) Make normal CNCs for filtering pages (via add_rewrite_rule). There are also enough problems here, but at least it’s clear where to dig.
b) Display your title and description for each filter option. And here's the hitch.
So far, I have built this algorithm for myself:
1) Remove the standard (from Yoast SEO) title and description (only for filter pages)
2) Parse the URL (pa_diametr=12 and pa_size=010-0-80-12), correlate them with the attributes " size" and "diameter" and write to variables, find the page number (suddenly there are a lot of goods and there will be pagination), we also write.
3) Output after all this title like "Category name + size (size variable) + diameter (diameter variable) + page number". Same for description "Some basic description + size (size variable) + diameter (diameter variable) + page number"...
It seems that he put everything together in his head and began to slowly sketch in his free time, but vague doubts torment me that all this can be done much easier ... Or maybe there is some kind of ready-made plugin?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question