Changing Schema.org type brokes website
-
I tried to change the schema.org type from “article” to “Museum”
by adding<?php
add_filter(‘wp_postratings_schema_itemtype’, ‘wp_postratings_schema_itemtype’);
function wp_postratings_schema_itemtype($itemtype) {
return ‘itemscope itemtype=”https://schema.org/Museum”‘;
}
?>to functions.php,but I get a 500 – server error.
Someone else have tried witch such code and got it working?
Is there a workaround through which I could change the default Schema.org type in the plugin code rather than working on functions.php?Any help is very appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Changing Schema.org type brokes website’ is closed to new replies.