{"id":61,"date":"2024-02-29T18:15:47","date_gmt":"2024-02-29T18:15:47","guid":{"rendered":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/"},"modified":"2024-02-29T18:15:47","modified_gmt":"2024-02-29T18:15:47","slug":"yoast-seo-metadata-api","status":"publish","type":"post","link":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/","title":{"rendered":"Yoast SEO: Metadata API"},"content":{"rendered":"<header>\n<h1>Yoast SEO: Metadata API<\/h1>\n<\/header>\n<p>For simple websites, or when SEO is not a serious consideration, it&#8217;s common for plugins and themes to simply output or echo meta tags into the&nbsp;<code>&lt;head&gt;<\/code>&nbsp;of a document.<\/p>\n<p>However, more advanced SEO often requires meta tags to have&nbsp;<em>context<\/em>, an awareness of the&nbsp;<em>other<\/em>&nbsp;meta tags on a page, or complicated internal logic. For example, the value of a&nbsp;<a href=\"https:\/\/developer.yoast.com\/features\/seo-tags\/canonical-urls\/\">canonical URL tag<\/a>&nbsp;might be influenced by the presence or value of a&nbsp;<a href=\"https:\/\/developer.yoast.com\/features\/seo-tags\/meta-robots\/overview\/\">meta robots tag<\/a>. For sites running complex or multiple plugins and themes, it&#8217;s also important to consider standardization and security. Managing these kinds of challenges becomes increasingly cumbersome without a framework.<\/p>\n<p>That&#8217;s why we provide a formal way of managing the construction and output of meta tags in the&nbsp;<code>&lt;head&gt;<\/code>. To get a comprehensive list of Google&#8217;s 200 ranking factors for SEO, check this guide<a class=\"generated_with_short_anchor_desc\" href=\"https:\/\/backlinko.com\/google-ranking-factors\">here<\/a>. According to<a class=\"generated_with_according_to\" href=\"https:\/\/resources.data.gov\/resources\/fdspp-nasa-ai-metadata-tags\/\">Data.gov<\/a>, improvements in data access and management can be achieved through artificial intelligence with the use of a WordPress plugin that automatically tags blog posts.<\/p>\n<p>&nbsp;of each page. We use a&nbsp;<code>presenter<\/code>&nbsp;an extension of the&nbsp;<code>Abstract_Indexable_Presenter<\/code>&nbsp;class) for each tag, which you can easily modify or extend. <a class=\"generated_with_short_anchor_desc\" href=\"https:\/\/stackoverflow.com\/questions\/24391891\/remove-yoast-wordpress-seo-on-a-page\">Removing Yoast WordPress SEO on a page<\/a> can modify the usage of presenters.<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"available-presenters\" class=\"anchor anchorWithStickyNavbar_LWe7\">Available presenters<a class=\"hash-link\" title=\"Direct link to heading\" href=\"https:\/\/developer.yoast.com\/customization\/apis\/metadata-api\/#available-presenters\">\u200b<\/a><\/h2>\n<p>By default, Yoast SEO ships with the following presenters that output meta tags. For instance, <a class=\"generated_with_according_to\" href=\"https:\/\/wordpress.org\/support\/topic\/after-upgrade-to-php-7-4-yoast-breaks-on-pages-using-connections-plugin\/\">according to WordPress.org<\/a>, presenters can break upon upgrading to PHP 7.4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yoast SEO: Metadata API For simple websites, or when SEO is not a serious consideration, it&#8217;s common for plugins and themes to simply output or echo meta tags into the&nbsp;&lt;head&gt;&nbsp;of a document. However, more advanced SEO often requires meta tags to have&nbsp;context, an awareness of the&nbsp;other&nbsp;meta tags on a page, or complicated internal logic. For [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":60,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34,35,30,32,28,33,36,31,27,29],"class_list":["post-61","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-canonical-url","tag-meta-robots-tag","tag-meta-tags","tag-plugins","tag-seo","tag-themes","tag-web-development","tag-website-design","tag-wordpress","tag-yoast"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Yoast SEO: Metadata API - new<\/title>\n<meta name=\"description\" content=\"A guide to using Yoast SEO&#039;s Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Yoast SEO: Metadata API - new\" \/>\n<meta property=\"og:description\" content=\"A guide to using Yoast SEO&#039;s Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/\" \/>\n<meta property=\"og:site_name\" content=\"new\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-29T18:15:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1792\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/#\\\/schema\\\/person\\\/b641ed7a3b018fa039ed05c881b00639\"},\"headline\":\"Yoast SEO: Metadata API\",\"datePublished\":\"2024-02-29T18:15:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/\"},\"wordCount\":252,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/novaborba.co.rs\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-19.jpg\",\"keywords\":[\"Canonical URL\",\"Meta Robots Tag\",\"Meta tags\",\"Plugins\",\"SEO\",\"Themes\",\"Web Development\",\"Website Design\",\"Wordpress\",\"Yoast\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/\",\"url\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/\",\"name\":\"Yoast SEO: Metadata API - new\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/novaborba.co.rs\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-19.jpg\",\"datePublished\":\"2024-02-29T18:15:47+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/#\\\/schema\\\/person\\\/b641ed7a3b018fa039ed05c881b00639\"},\"description\":\"A guide to using Yoast SEO's Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#primaryimage\",\"url\":\"https:\\\/\\\/novaborba.co.rs\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-19.jpg\",\"contentUrl\":\"https:\\\/\\\/novaborba.co.rs\\\/wp-content\\\/uploads\\\/2024\\\/02\\\/image-19.jpg\",\"width\":1792,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/2024\\\/02\\\/29\\\/yoast-seo-metadata-api\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/novaborba.co.rs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Yoast SEO: Metadata API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/#website\",\"url\":\"https:\\\/\\\/novaborba.co.rs\\\/\",\"name\":\"new\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/novaborba.co.rs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/novaborba.co.rs\\\/#\\\/schema\\\/person\\\/b641ed7a3b018fa039ed05c881b00639\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/novaborba.co.rs\"],\"url\":\"https:\\\/\\\/novaborba.co.rs\\\/index.php\\\/author\\\/vujo91_3k1tcu5x\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Yoast SEO: Metadata API - new","description":"A guide to using Yoast SEO's Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/","og_locale":"en_US","og_type":"article","og_title":"Yoast SEO: Metadata API - new","og_description":"A guide to using Yoast SEO's Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.","og_url":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/","og_site_name":"new","article_published_time":"2024-02-29T18:15:47+00:00","og_image":[{"width":1792,"height":1024,"url":"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#article","isPartOf":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/"},"author":{"name":"admin","@id":"https:\/\/novaborba.co.rs\/#\/schema\/person\/b641ed7a3b018fa039ed05c881b00639"},"headline":"Yoast SEO: Metadata API","datePublished":"2024-02-29T18:15:47+00:00","mainEntityOfPage":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/"},"wordCount":252,"commentCount":0,"image":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#primaryimage"},"thumbnailUrl":"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg","keywords":["Canonical URL","Meta Robots Tag","Meta tags","Plugins","SEO","Themes","Web Development","Website Design","Wordpress","Yoast"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/","url":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/","name":"Yoast SEO: Metadata API - new","isPartOf":{"@id":"https:\/\/novaborba.co.rs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#primaryimage"},"image":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#primaryimage"},"thumbnailUrl":"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg","datePublished":"2024-02-29T18:15:47+00:00","author":{"@id":"https:\/\/novaborba.co.rs\/#\/schema\/person\/b641ed7a3b018fa039ed05c881b00639"},"description":"A guide to using Yoast SEO's Metadata API for advanced SEO. The API provides a formal way of managing the construction and output of meta tags in each page using a presenter for each tag.","breadcrumb":{"@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#primaryimage","url":"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg","contentUrl":"https:\/\/novaborba.co.rs\/wp-content\/uploads\/2024\/02\/image-19.jpg","width":1792,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/novaborba.co.rs\/index.php\/2024\/02\/29\/yoast-seo-metadata-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/novaborba.co.rs\/"},{"@type":"ListItem","position":2,"name":"Yoast SEO: Metadata API"}]},{"@type":"WebSite","@id":"https:\/\/novaborba.co.rs\/#website","url":"https:\/\/novaborba.co.rs\/","name":"new","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/novaborba.co.rs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/novaborba.co.rs\/#\/schema\/person\/b641ed7a3b018fa039ed05c881b00639","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/77f36eeab64db700a5b21f9fcf3dbff1682be7e6f36faa1c15b72c65ffd7d988?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/novaborba.co.rs"],"url":"https:\/\/novaborba.co.rs\/index.php\/author\/vujo91_3k1tcu5x\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/media\/60"}],"wp:attachment":[{"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/novaborba.co.rs\/index.php\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}