-
Notifications
You must be signed in to change notification settings - Fork 468
Date Archives don't resolve with nodeByUri queries #2191
Copy link
Copy link
Open
Labels
component: connectionsRelating to GraphQL ConnectionsRelating to GraphQL Connectionstype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Milestone
Description
In WordPress, if you have dates setup in your permalinks, you can visit a url such as /2021/12 and get an archive of posts from December 2021.
Or you could do /2021 and get an archive of posts from the year 2021.
Or you could do /2021/12/22 and get an archive of posts from December 22, 2021.
In WPGraphQL, these paths passed to nodeByUri will return null.
WordPress core behavior:
I can visit the url /2013/03/15/ and see an archive of posts for March 15, 2013.
Inspecting the DOM, I can see the body class outputting "archive date"
WPGraphQL Behavior:
If I enter the same uri in WPGraphQL, I get null:
I would expect to get a ContentType node in response, and I would expect the connections to the ContentNodes to be pre-filtered to the date
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: connectionsRelating to GraphQL ConnectionsRelating to GraphQL Connectionstype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Projects
Status
🗺 Planned

