最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

custom post types - CPTUI with ParentChild categories - Template Structure

programmeradmin0浏览0评论

Probably been asked a million times, but I cant quite wrap my head around it. I have come from ExpressionEngine and this all seems quite straight forward over there, but I am sticking with this.

I have used CPT UI plugin to create a CPT called Products. I have three parent categories of product; granite, quartz and marble, and further sub categories in each. Pretty straight forward really?

On the front end, I want pages (I think) called Granite, Quartz and Marble, which displays the child categories which are clickable through to those child categories.

For example, the user clicks Quartz, this loads the Quartz page which displays 6 Quartz child categories which are child categories of Quartz. Clicking these then displays products of that child category.

The categories and setting up etc is easy. What I am less sure about is how to handle these using templates, despite reading the Codex.

What is the best way to do this?

发布评论

评论列表(0)

  1. 暂无评论