liveblog icon indicating copy to clipboard operation
liveblog copied to clipboard

Please add schema LiveBlogPosting

Open siamlottery opened this issue 8 years ago • 6 comments

Hello, Please add Microdata to the liveblog plugins? http://schema.org/LiveBlogPosting Thank you very much.

siamlottery avatar Oct 01 '17 20:10 siamlottery

Nice suggestion, thanks!

philipjohn avatar Oct 13 '17 16:10 philipjohn

I was thinking of taking this on today, but I noticed that Liveblog entries are rendered by React which complicates things a bit for inlining schema. Would it be better to generate an JSOND instead with a custom loop instead?

/cc @jasonagnew @liam-defty

pyronaur avatar Jan 15 '18 11:01 pyronaur

Hey @justnorris

That would be great. From my understanding, this helps search engines or other services better understand the page, therefore, it doesn't need updating on/once the page loads. The Verge has an example of it: https://live.theverge.com/apple-live-blog-2017-iphone-8-event/ (Line 199)

So this could be outputted in the wp_head when the page loads using PHP / WordPress filter.

Does that sound correct to you?

Thanks Jason

jasonagnew avatar Jan 15 '18 12:01 jasonagnew

Yes, that's what I was thinking - but it's going to add a query to the initial page load, just making sure that's okay.

pyronaur avatar Jan 15 '18 12:01 pyronaur

Awesome, the get_all_entries_asc() does get cached so I don't see an issue with this. It's also worth noting that before 1.7 the first batch of entries was added using PHP so that query was originally being called on page load. We only took it out in 1.7 to avoid having some entries coming from page load and others from the API, it made more sense to have everything come from the API.

jasonagnew avatar Jan 15 '18 12:01 jasonagnew

Perfect, I'm going to work on this soon then 👍

pyronaur avatar Jan 15 '18 12:01 pyronaur