-
Notifications
You must be signed in to change notification settings - Fork 11
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
JSON-LD not working with meta-tags.templates #13
Comments
Could you please share just the JSON-LD settings to reproduce this? |
Sure, here you go...
|
I'm not knowledgeable about JSON-LD, I see that it includes both the |
Yes :) On every page and BlogPosts, i need the i need the LocalBusiness schema. On BlogPosts ONLY i need BOTH the LocalBusiness and BlogPost Schemas. The plugin just needs to respect the schemas set in the meta-tags.templates config and not merge them with the default ones. They need to be done only on the template they have been set for. |
Thats odd. For me, it loaded both on the home page. When I went back to the home page, i got a whoops message because it was looking for things that are not on the home. I just uncommented the code and tried again it seems to work. Both schemas were definetly coming out on the home page, i checked. If i manage to trigger it again, i will post more detail. Probably some weird edge case, or something that your minimal test code is not triggering. |
Ok - although im not getting both JSON blocks on the home page anymore, it is sill reading the config for the templates block on the home page and causing a whoops on an image call. It shouldnt be processing this part of the config unless the template matches. |
As the title says. If you set JSON-LD up in meta-tags.default it comes out on every page. If you want a different schema on a specific page (in my case blog post schema), this block also comes out on every page, despite being set within
meta-tags.templates
for a specific page template.Other properties in
meta-tags.templates
work as expected, seems limited to just JSON-LD.How can I make this work?
The text was updated successfully, but these errors were encountered: