Viewing 1 replies (of 1 total)
  • Hi Sii.

    Any progress here, I have the same issue and have hacked the plug-in as below in class-frontend.php:

    private function get_post_schema_type( $post ) {
    			if ( 'post' === $post->post_type ) {
    				$type = 'Article';
    			}
    			else {
    				$type = 'Article';
    			}
    
    			/**
    			 * Filter: 'yoastseo_amp_schema_type' - Allow changing the Schema.org type for the post
    			 *
    			 * @api string $type The Schema.org type for the $post
    			 *
    			 * @param WP_Post $post
    			 */
    			$type = apply_filters( 'yoastseo_amp_schema_type', $type, $post );
    
    			return $type;
    		}

    Might there be some simple way to tap into yoastseo_amp_schema_type?

    Great plug-in and great work.
    Thanks,
    Dan

Viewing 1 replies (of 1 total)

The topic ‘Post Schema’ is closed to new replies.