Hi, I need to create a website for a medical firm.
They have many different locations, many doctors and many services offered. The same service can be available in different locations, as are the doctors.
I need a way to show:
- locations as priority content with many additional info per location
- doctors connected to that locations (with list of different services offered by the doctor)
- services offered in the location
This is a porting from an actual website:
Location: hidden link
Service in that location: hidden link
List of doctors at that location: hidden link
Single doctor at that location: hidden link
Thanks in advance,
m.
Dear m,
I suggest you try this create three custom post types and two custom Taxonomies
1) three custom post types:
locations, doctors and services
2) two custom Taxonomies:
locations and services,
a) Taxonomy "locations" register all three post types,
Each term of Taxonomy "locations" correspond to one "locations" post.
b) Taxonomy "services " register all three post types,
Each term of Taxonomy "services" correspond to one "services" post.
To list the doctors posts and services posts in a single "locations", you can create view with filter by:
taxonomy Value set by the current page.
More help:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/
Value set by the current page
The View is always inserted somewhere. That page where the View is inserted is responsible for setting the taxonomy term. This is good when you want the same View to return different results, according to the page it’s inserted to.