我有如下所需的产品:
https://example.com/product/manufacturer/brand/modeli.e
https://example.com/product/manufacturer-1/brand-1/model-11
https://example.com/product/manufacturer-1/brand-2/model-12
https://example.com/product/manufacturer-2/brand-3/model-23
https://example.com/product/manufacturer-2/brand-4/model-24为此,我将创建新的定制post类型"Product“
我还想要:
有permalinks的制造商的档案
https://example.com/product/manufacturer-1/
https://example.com/product/manufacturer-2/和
包装商标的档案馆
https://example.com/product/manufacturer-1/brand-1/
https://example.com/product/manufacturer-1/brand-2/
https://example.com/product/manufacturer-2/brand-3/
https://example.com/product/manufacturer-2/brand-4/我想按品牌和制造商过滤产品。
所以我想知道我应该做些什么来做制造商和品牌
所以请帮助并指导我如何前进
非常感谢您的投入
发布于 2021-10-20 22:54:38
Permalink结构是一个层次结构,每一个层次都应该是彼此的后代,更具体一点,即每一本书都是一种产品,小说是一种小说类型,哈利波特属于小说类。
因此,在您的示例product/manufacturer/brand/model中,每个品牌都应该属于一个制造商,每个型号都属于该制造商的一个<#>品牌。如果是这样的话,只需使用一个分类-产品类别并创建一个层次结构。
如果一个品牌可以涉及多个制造商,你需要独立的分类,你的多链结构必须是不同的。
https://wordpress.stackexchange.com/questions/397140
复制相似问题