最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

custom post types - How to approach a site where it has sub-businesses, each with its own pages ("articles", &

matteradmin5PV0评论

The structure would be something like this.

Main site

  • About Us
  • Our Staff
    • Person A
    • Person B, etc
  • Catering Service
    • About Catering Service
    • Staff of Catering
      • Person 1
      • Person 2, etc
    • Articles of Catering
      • Article 1, etc
  • Wedding Service
    • About Wedding Service
    • Staff of Wedding Service
    • and so on...

What would be the best way to approach this kind of site?

I was thinking of making each subsites (catering, wedding, etc) as custom post types. The CPTs would be: "Main Site", "Catering Service", "Wedding Service", etc.

Then each CPT has their own taxonomy which would be: "About", "Staff", and "Articles". It would be then easy (there is a solution in other question) to set the permalink to be something like:

/

(e.g.) /

Initially it seems sound. However I'm not sure if this approach is the best solution. It's kinda hackish.

I prefer not using multisite.

Any tips or something that I should consider before moving forward?

The structure would be something like this.

Main site

  • About Us
  • Our Staff
    • Person A
    • Person B, etc
  • Catering Service
    • About Catering Service
    • Staff of Catering
      • Person 1
      • Person 2, etc
    • Articles of Catering
      • Article 1, etc
  • Wedding Service
    • About Wedding Service
    • Staff of Wedding Service
    • and so on...

What would be the best way to approach this kind of site?

I was thinking of making each subsites (catering, wedding, etc) as custom post types. The CPTs would be: "Main Site", "Catering Service", "Wedding Service", etc.

Then each CPT has their own taxonomy which would be: "About", "Staff", and "Articles". It would be then easy (there is a solution in other question) to set the permalink to be something like:

http://website/posttypes/taxonomy/post-title/

(e.g.) http://website/catering/staff/person-1/

Initially it seems sound. However I'm not sure if this approach is the best solution. It's kinda hackish.

I prefer not using multisite.

Any tips or something that I should consider before moving forward?

Share Improve this question edited Jun 15, 2020 at 8:21 CommunityBot 1 asked Mar 22, 2019 at 6:31 deathlockdeathlock 5462 gold badges9 silver badges26 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Logic suggests that:

  • "Services" is taxonomy.
  • "Catering" and "Wedding" are parent terms.
  • "Staff" and "Articles" are child terms.
  • "About Parent Term", "Person N" and "Article N" are either CPTs, posts or pages.
  • "About Us", "Our Staff" and other accessories are the set of hierarchical pages or whatever.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far