issue with same page with variety of url paths
-
in a website I created a page template file news-and-client-updates.php which is implemented in a page with URL https://example.com/latest-updates. The template is aggregating posts from several custom post types taxonomies and present as a list.
All the varied taxonomies terms in this page has the same name. i.e. if we deal with a child term like banking-finance/banking-regulation the page will query all those cpts for the term banking-regulation.
The resulted page (all in same wordpress page) URL will be https://example.com/practice_areas/banking-finance/banking-regulation/latest-updates.
The problem is that this URL is generated artificially by the referring page in this manner:
it takes its own URL i.e. https://example.com/practice_areas/banking-finance/banking-regulation/ and add to it in the end /latest-updates.
This URL in its turn shows the page https://example.com/practice_areas/banking-finance/banking-regulation/latest-updates that actually is the page https://example.com/latest-updates.
The URL is change according to the terms path in the referring page. yoastseo automatic sitemap does not recognize the variety of different URLs that are created in this page.
I hope the explanation make sense.
My question is, how can I make yoast sitemap either recognize these urls or push them manually to it in some way (there is a finite number of them)?
I’m aware of the filter wpseo_sitemap_index, but its mod date is hardcoded.
- The topic ‘issue with same page with variety of url paths’ is closed to new replies.