Skip to content
This repository has been archived by the owner on May 23, 2018. It is now read-only.

Invalid hentry implementation in WordPress pages #465

Open
gorgoglionemeister opened this issue May 3, 2016 · 7 comments
Open

Invalid hentry implementation in WordPress pages #465

gorgoglionemeister opened this issue May 3, 2016 · 7 comments

Comments

@gorgoglionemeister
Copy link

gorgoglionemeister commented May 3, 2016

In WordPress pages, the Entry element (hentry) implementation is invalid, missing the required updated and author fields. It causes errors in Google Search Console.

@dshanske
Copy link

dshanske commented May 3, 2016

This issue keeps coming up on various themes. Maybe this is something that needs more education overall.

@Volnus
Copy link

Volnus commented May 3, 2016

I can explain hentry markup.The markup tells Google the author, the date, and other information regarding the post. The issue is in WordPress we don't normally show the date the page was created or last updated this is because we don't need to they are static content. Also, the author information for pages is useless to readers.

What can be done is strip the hentry markup for pages.. Hentry markup looks something like this.

If we normally call the title of a post like this

<h2 ><?php the_title(); ?></h2>

The hentry markup would look something like this.
<h2 class="entry-title"> <?php the_title(); ?></h2>

the class is equal to the specific markup we are using.

SOOO the way to fix this is to either display the metadata for the pages or to simply remove it from pages and use a different class to handle the styling.

@dshanske
Copy link

dshanske commented May 3, 2016

I've proposed this in Core. Too many people rely on hentry even though it is improperly applied. It can be adjusted in a specific theme though

@grappler
Copy link
Member

grappler commented May 3, 2016

This is the core ticket https://core.trac.wordpress.org/ticket/28482
A possible fix for this Automattic/_s#860

@karmatosed
Copy link
Member

Do you have a patch we can use for Twenty Sixteen to test @Volnus ?

@karmatosed
Copy link
Member

Noting we're still waiting on a patch here.

@proweb
Copy link

proweb commented Jan 14, 2017

It lasts many years in all wordpress themes(and in _s too), and I don't understand why it still not solved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants