Skip to content

The conditional tag article:published_time outputs for posts but not for pages #21433

Description

@josevarghese

Issue moved from Jira: https://yoast.atlassian.net/browse/IM-774
Reporter: @michaelbriantina

  • I've read and understood the contribution guidelines.
  • I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened

Description
In our documentation here, we state that we output the article:published_time for both posts and pages.

When creating a new post, it outputs both the article:published_time and article:modified_time.

image-2020-11-13-16-16-05-639

However, when creating a new page, it doesn't output the article:published_time. It does output the article:modified_time though. Also, the datePublished and dateModified schema are also outputting accordingly.

image-2020-11-13-16-21-05-243

Is this a bug or do we just need to update our developer documentation for the article:published_time section?

Impact
This could potentially cause issues for any websites or crawlers that use the article:published_time conditional tag.
"The article:published_time doesn't output for pages which isn't in line with our documentation"

WP: 6.5.4
Yoast: 22.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions