fuxt
fuxt copied to clipboard
Implement Better SEO (Using Google Schema)
You wrote on the TODO list:
Perhaps add this for better SEO: https://developers.google.com/search/docs/guides/intro-structured-data
Can i start implementing my wp-graphql-google-schema see - https://github.com/izzygld/wp-graphql-google-schema?
Hi @izzygld, thanks for thinking of us!
Curious how this works for frontends that don't map perfectly to WordPress backends URL structure?
Also what does this allow, and what would the implementation actually involve? A WordPress plugin for stackhaus-backend? Any frontend code?
sure.
you wrote on the todo list: Perhaps add this for better SEO: https://developers.google.com/search/docs/guides/intro-structured-data or https://www.npmjs.com/package/nuxt-jsonld
in short, it would pull all the info of a wordpress post via graphql and display it in Jsonld schema format as recommended by google.
you would call the schema component on the page/post - example -here.
Let me know what you think.
Now that we have the <wp-seo> component, I think I can get this working.
Would be really good for the funkhaus sites to get this working for anypage that has a ACF video URL set: https://developers.google.com/search/docs/data-types/video
Blog posts could get this: https://developers.google.com/search/docs/data-types/article
Perhaps the move is to add a prop to <wp-content> that sets the structured data type? And then the GQL query can get the required data.