Hi,
I’m setting up a custom post type called team with a custom taxonomy called job_titles with the same endpoint.
I would like to have an URL called team
that lists all the team members, an URL team/person-name
to see individual team members and an URL like team/job_title
to filter team members according to their roles, e.g. team/developers
.
This is my setup in frontity.settings
. The Custom Post Type is working, being able to list all the team members, but the taxonomy type links, e.g. team/developers
is sending back a 404 page. If I try the same link with the wordpress site directly it is working without any issues.
...
postTypes: [
{
type: "team",
endpoint: "team",
archive: "/team",
}
],
taxonomies: [
{
taxonomy: "job_titles",
endpoint: "team",
postTypeEndpoint: "team",
params: {
per_page: 100,
_embed: true,
},
}
]
...