Skip to content

Page Link field type should allow for archive pages to resolve #123

@jasonbahl

Description

@jasonbahl

Description

The "page_link" field type returns a ContentNode connection, which will resolve nodes of any "post" type.

However, the field type will allow "Archive URLs" to be selected, and if an Archive URL is selected, it will not be returned when querying for the page_link field.

Steps to reproduce

  1. Add a "page_link" field type to a field group
  2. Select "Allow Archive URLs" option

CleanShot 2023-11-14 at 15 50 49

  1. Go edit a page with the field on it, adding an archive url as the value

CleanShot 2023-11-14 at 15 51 44

  1. Query the node and the page_link field:

CleanShot 2023-11-14 at 15 53 09

EXPECTED: See the archive link output

ACTUAL: Archive's are not returned (this is technically expected right now because the connection is a ContentNode connection, but in an ideal world the connection would be to a Type that would allow ContentNode and/or Archives to be returned)

Additional context

Blocked by: wp-graphql/wp-graphql#2491

WPGraphQL Version

1.18.0

WPGraphQL For ACF Version

v2.0.0-beta.6.0.0

ACF (Advanced Custom Fields) Version. Free or Pro?

latest, pro

WordPress Version

6.4

PHP Version

8.2

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

Labels

status: blockedProgress halted due to dependencies or issuestype: 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