Skip to content

post_type_link hook without page load prevents counting #301

@Seriousness

Description

@Seriousness

This might be on purpose, if thats the case please dismiss my issue.

Describe the bug

We have a crud logic where we have courses with individual course dates that are programmatically creating course-date posts for utilizing wordpress filter logics upon those individual dates. These course dates are not displayed directly but have a post_type_link hook where they get the "parent" course plus a query parameter. so instead of /course-date-1 we have /course?dateid=12345 where 12345 is the course date post id.

They get listed correctly but are not counted as course date visits. I cant really tell if the page load is added to the /course

To Reproduce
Alter the post_type_link in a way where the underlying post is not loaded.

Expected behavior
It should count the request not the page load.

PS: Sorry overread the "post to forum first" - will do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions