-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate with Yoast's new Schema API #710
Comments
i've just encountered this problem. i started working around it, i'll post my hacks when i get something useful working. things that (i noticed) work incorrectly on my site: schema.org metadata in
|
Here's the integration code i hacked together: https://gist.github.com/lubieowoce/46d917b10a85d4195185dff347db9206 i'm still improving it (and updating the gist as i go), but it fixes the problems i had. it's probably not very robust and makes some site-specific assumptions¹, so please read the code before using it – i did my best to document them (comments starting with
|
I think we're having the same issue. Google Search Console has detected a covarage issue. Every Co-Author page have the meta tag And now here I am... @lubieowoce do you have your fix still in production? |
@mekanics my fix required some modifications after updating to Yoast 14 bc they changed a whole bunch of stuff, but yeah, it's still running :) i'll post the new version here soon.
the code just does a bunch of PS. does your site have a user for each guest_author? mine doesn't, and I wrote the fix with that in mind, so it could require some tweaking |
@lubieowoce thank you very much!
No, they don't have one either – lucky us 😉 |
Looks like Yoast is adding a filter for modifying the schema author data in v16.3, which should make this change much simpler. This feature marches closer to completion! |
Any update on this one? |
@anteksiler Feel free to open a PR! |
Hello everyone, I've got some news: Recently Yoast added an integration with CoAuthors Plus in its core: From what I could see, it now supports multiple authors for a post, but it does not support guest authors yet. I've started working on this and the help from everyone here with testing, validating and (even better) some code would be awesome. Once we have this ready we can open a PR to the official Yoast repository: I'm new to both CoAuthors Plus and Yoast, so getting an eye from some of you who know this issue in more depth would be great. cc @lubieowoce |
I think I've managed to address all the issues we found. There's a PR to the Yoast repo now: |
Hello, Following the comments here and in Yoast/wordpress-seo#19076 and #877 but noticing that neither the Person or ProfilePage schema is appearing on single Guest Author pages when testing. In the Yoast settings I have the Guest Authors post type Schema set to |
Info: https://yoast.com/yoast-seo-11-0/
Extending docs: https://developer.yoast.com/features/schema/api/#add-or-remove-graph-pieces
CAP should ensure it uses the co-author data and not the core WP author data.
The text was updated successfully, but these errors were encountered: