From d905d9d1aad99c84a2d234e111412f2c0047d7b4 Mon Sep 17 00:00:00 2001 From: Ash Hitchcock Date: Thu, 30 Apr 2020 20:29:41 +0100 Subject: [PATCH] fix field name --- wp-graphql-yoast-seo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-graphql-yoast-seo.php b/wp-graphql-yoast-seo.php index 5f79701..2264845 100755 --- a/wp-graphql-yoast-seo.php +++ b/wp-graphql-yoast-seo.php @@ -271,7 +271,7 @@ function get_og_image($images) 'opengraphTitle' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_title), 'opengraphType' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_type), 'opengraphAuthor' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author), - 'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author), + 'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_publisher), 'opengraphDescription' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_description), 'opengraphImage' => DataSource::resolve_post_object(get_og_image(YoastSEO()->meta->for_post($post->ID)->open_graph_images), $context), 'twitterCardType' => trim(YoastSEO()->meta->for_post($post->ID)->twitter_card), @@ -335,7 +335,7 @@ function get_og_image($images) 'opengraphTitle' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_title), 'opengraphType' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_type), 'opengraphAuthor' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author), - 'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_author), + 'opengraphPublisher' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_article_publisher), 'opengraphDescription' => trim(YoastSEO()->meta->for_post($post->ID)->open_graph_description), 'opengraphImage' => DataSource::resolve_post_object($meta['wpseo_opengraph-image-id'], $context), 'twitterCardType' => trim(YoastSEO()->meta->for_post($post->ID)->twitter_card),