Skip to content

Taxonomy called "location" causes menuItems not to work #2409

@cristobalbahe

Description

@cristobalbahe

Hello everyone,

I don't know if this is the place to publish this, but I've just come across the following problem and finally learned why.

In my installation I had a custom taxonomy with a slug of "location" which caused this query to return an empty array.

menuItems(where:{location:PRIMARY_MENU}) {
    nodes {
      id
    }
}

When I changed the slug of the taxonomy, everything worked again.

Just in case someone has the same problem :)

Cheers everyone

Metadata

Metadata

Assignees

Labels

component: queryRelating to GraphQL Queriesobject type: menuRelating to the Menu or MenuItem Typetype: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions