-
Hello, I salute you for this wonderful work
– I want to correct this code so that it works with Rich Snippets settings
– I want to add the description in Rich Snippetsadd_filter( 'rank_math/snippet/rich_snippet_article_entity', function( $entity ) { $entity = [ '@context' => 'https://schema.org', '@type' => \RankMath\Helper::get_settings( "titles.pt_{$json->post->post_type}_default_article_type" ), 'headline' => get_the_title(), 'datePublished' => get_post_time( 'Y-m-d\TH:i:sP' ), 'dateModified' => get_post_modified_time( 'Y-m-d\TH:i:sP' ), 'description' => '', ]; return $entity; });
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The ticket ‘I want to add the description in Rich Snippets’ is closed to new replies.