Niestandardowe szablony oparte na niestandardowej strukturze adresu URL w wordpress
Pracuję nad witryną zawierającą sekcję dla fryzjerów i chcę uzyskać następującą strukturę adresów URL:
Barbers {domain.com/barbers This page will have 2 section, 1 section will list Barber Organizations and another section will have list of states which have barbers}/
├── Individual Organization Page {domain.com/<<organization-name>> this page will display overview of the organization, contact details and have further 3 parts}/
│ ├── Branches {domain.com/<<organization-name>>/branches this page will again display list of states related to the selected organization}/
│ │ └── Individual State {domain.com/<<organization-name>>/branches/<<state>> this page will again display list of cities, in the states selected previously, related to the selected organization}/
│ │ └── Individual City {domain.com/<<organization-name>>/branches/<<state>>/<<city>> this page will again display all branches, in the city selected previously, related to the selected organization}
│ ├── Barbers related to the selected organization {domain.com/<<company-name>>/barbers} this will again list all the states which have barbers related to the selected organization/
│ │ └── Individual State {domain.com/<<organization-name>>/barbers/<<state>> this page will again display list of cities, in the state selected previously, related to the selected organization}/
│ │ └── Individual City {domain.com/<<organization-name>>/barbers/<<state>>/<<city>> this page will again display all barbers, in the city selected previously, related to the selected organization}
│ └── Super Barbers related to the selected company {domain.com/<<organization-name>>/super-barbers this will display list of Super Barbers for the selected organization}
└── Individual State {domain.com/barbers/<<state>> this will display list of cities which have barbers, irrespective of any organization}/
└── Individual City {domain.com/barbers/<<state>>/<<city>> this will display list of barbers in the selected City, irrespective of any organization}
Proszę zapoznać się z tym linkiem do obrazu, aby uzyskać schemat blokowy dla lepszego zrozumienia i wizualizacji.
Planuję utworzyć niestandardowe typy postów dla powyższych elementów i połączyć je za pomocą pól relacji ACF lub wtyczki P2P.
- Fryzjerzy
- Organizacje
- Stany
- Miasta
- Super fryzjerzy
- Gałęzie
Oto moje pytania:
- Jakie szablony muszę utworzyć, aby uzyskać taką strukturę adresu URL?
- Czy istnieje sposób zarejestrowania typu układu na podstawie struktury adresu URL?
- Jak skuteczne i przyjazne dla SEO może być to podejście?
Pamiętaj, że poza organizacjami nic innego nie będzie miało szablonu single.php; wszystko inne będzie w formacie archiwum lub listy powiązanej z wymienionymi parametrami.
Z góry dziękuję.