Plugin works but there seems to be some validation and filter issues
-
I got these errors in Webmaster tool
“The attribute ‘content_max_width’ may not appear in tag ‘amp-carousel'”
“The attribute ‘rel’ in tag ‘a’ is set to the invalid value ‘attachment wp-att-14145′”
And this metadata filter doesn’t seem to make any changes to the $metadata at all
add_filter( 'amp_post_template_metadata', 'xyz_amp_modify_json_metadata', 10, 2 ); function xyz_amp_modify_json_metadata( $metadata, $post ) { $metadata['@type'] = 'NewsArticle'; $metadata['publisher']['logo'] = array( '@type' => 'ImageObject', 'url' => get_template_directory_uri().'/images/logo.png', 'height' => 60, 'width' => 600, ); return $metadata; }
Any fix?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Plugin works but there seems to be some validation and filter issues’ is closed to new replies.