{"id":692,"date":"2022-11-01T11:55:03","date_gmt":"2022-11-01T11:55:03","guid":{"rendered":"https:\/\/vicky.dev\/?p=692"},"modified":"2022-11-22T11:11:33","modified_gmt":"2022-11-22T11:11:33","slug":"wp_get_attachment_image","status":"publish","type":"post","link":"https:\/\/vicky.dev\/wp_get_attachment_image\/","title":{"rendered":"What is wp_get_attachment_image(); Everything You Need To Know."},"content":{"rendered":"<p>WordPress has many<strong> predefined<\/strong> functions for important features. The same goes with the get attachment image function. wp_get_attachment_image(); function is related to thumbnail image. This function is <strong>not just limited to blog posts<\/strong>. It can be used with custom post type or even with a particular page.<\/p>\n<p>There are situations when we need to show a thumbnail or we can say image on a template in WordPress. It can be <strong>inside a post<\/strong> page or custom post types. wp_get_post_attachment(); is used in this type of situations.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/vicky.dev\/wp_get_attachment_image\/#How_to_use_wp_get_attachment_image\" >How to use wp_get_attachment_image(); ?<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/vicky.dev\/wp_get_attachment_image\/#Wrapping_Up\" >Wrapping Up<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_use_wp_get_attachment_image\"><\/span>How to use wp_get_attachment_image(); ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Don\u2019t get<strong> overwhelmed<\/strong> by the name, It is pretty simple to use. If you know something about the other WordPress functions related to thumbnail. Then you can understand this one easily. Even if you don&#8217;t know anything or never heard about something like this.\u00a0 No worries, I will teach everything to you. I have given an example so you can understand better.<\/p>\n<p>Example:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wp_get_attachment_image ( $attachment_id, string|array $size = 'thumbnail', bool $icon = false, string|array $attr = '' )<\/pre>\n<p>If you look at the example above. You can see how the parameters are used within the function. In the first parameter, the ID of the attachment is specified. Then the size of the attachment is specified(can be pre-registered or set). Finally, the<strong> boolean<\/strong> value for the $icon parameter is specified.<\/p>\n<p><strong>It checks whether the attachment is an image or not<\/strong>. If the attachment is an image, then it returns with the specific size of the image. For other instance, the function returns with an <strong>icon<\/strong>. If the $icon value is set to true. The boolean value is set to false by default. WordPress uses a function to get the attachment<strong> dynamically<\/strong>.<\/p>\n<p>Here is an example.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get_posts( array( 'post_type' =&gt; 'attachment' ) ), etc.\r\n\r\n<\/pre>\n<p>What are the parameters accepted by get_attachment_image(); ?<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">wp_get_attachment_image( $attachment_id, $size, $icon, $attr );<\/pre>\n<p>The above-mentioned example uses all the parameters related to the function. Below I have explained about these parameters in detail. The function accepts three parameters.<\/p>\n<ul>\n<li><strong>$attachment_id<\/strong> \u2013 It is the ID of the attachment that we want to display.<\/li>\n<li><strong>$size(optional)<\/strong> -It is basically image size. It accepts the registered size of that image. If the registered size is not there, an array is passed with width and height in pixels. It&#8217;s always better to register size with $size parameter. It generates cropped version.<\/li>\n<li><strong>$icon(optional)<\/strong>&#8211; It performs a check to know whether to treat the attachment as an icon or not. To do this it\u00a0should be set to true.<\/li>\n<li><strong>$attr(optional)<\/strong>&#8211; It is an array of attributes that needs to be passed with the element.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">get_attachment_image(); to fetch the image from custom options\r\n\r\necho wp_get_attachment_image(\r\n\r\nget_theme_mod( $option_id_in_string )\r\n\r\n);<\/pre>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image\/\">Source : wordpress.org<\/a><\/p>\n<p>It is also used to fetch images from <strong>custom options<\/strong>. For example, you want to fetch images from themes\/plugins. Which was uploaded from custom options. Just copy the code that I have shown below.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">echo wp_get_attachment_image(\r\n\r\nget_theme_mod( $option_id_in_string )\r\n\r\n);<\/pre>\n<p><a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image\/\">Source : wordpress.org<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Wrapping_Up\"><\/span>Wrapping Up<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>That&#8217;s all for this article. We covered everything about get_attachment_image(); function. WordPress has some other functions that are very <strong>similar<\/strong> to this one.<\/p>\n<p>1. <a href=\"https:\/\/vicky.dev\/what-is-the_post_thumbnail-everything-you-need-to-know-vicky-dev\/\" target=\"_blank\" rel=\"noopener\">the_post_thumbnail<\/a> : this function is used to display the thumbnail image in the <strong>front-end<\/strong>.<\/p>\n<p>2. get_the_post_thumbnail : this function is similar to the one above. But the difference is that <strong>it returns with a container<\/strong>. The container contains the thumbnail image.<\/p>\n<p>3. get_attachment_image_url etc. : This works the same as get_attachment_image();. The difference is that it doesn\u2019t return with element. Instead, it returns with the <strong>URL of the image<\/strong>.\u00a0<img class=\"fr-fil fr-dib fr-draggable\" \/><\/p>\n<p>Although you are going to use these functions more often. If we compare them to get attachment thumbnail. If you find is helpful in any way. Please check our other useful articles as well. If you have any query related to this, you can reach us any time. Thank you for reading the post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress has many predefined functions for important features. The same goes with the get attachment image function. wp_get_attachment_image(); function is related to thumbnail image. This function is not just limited to blog posts. It can be used with custom post type or even with a particular page. There are situations when we need to show [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":693,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-692","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev<\/title>\n<meta name=\"description\" content=\"If you&#039;re using WordPress, then you&#039;ve probably used the wp_get_attachment_image() function at. But what does it do? Know everything.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vicky.dev\/wp_get_attachment_image\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev\" \/>\n<meta property=\"og:description\" content=\"If you&#039;re using WordPress, then you&#039;ve probably used the wp_get_attachment_image() function at. But what does it do? Know everything.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vicky.dev\/wp_get_attachment_image\/\" \/>\n<meta property=\"og:site_name\" content=\"Vicky.Dev\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-01T11:55:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-22T11:11:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"637\" \/>\n\t<meta property=\"og:image:height\" content=\"340\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Vicky Bhandari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vicky Bhandari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/\"},\"author\":{\"name\":\"Vicky Bhandari\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\"},\"headline\":\"What is wp_get_attachment_image(); Everything You Need To Know.\",\"datePublished\":\"2022-11-01T11:55:03+00:00\",\"dateModified\":\"2022-11-22T11:11:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/\"},\"wordCount\":626,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/wordpress-581849__340.webp\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/\",\"name\":\"What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/wordpress-581849__340.webp\",\"datePublished\":\"2022-11-01T11:55:03+00:00\",\"dateModified\":\"2022-11-22T11:11:33+00:00\",\"description\":\"If you're using WordPress, then you've probably used the wp_get_attachment_image() function at. But what does it do? Know everything.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/wordpress-581849__340.webp\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/wordpress-581849__340.webp\",\"width\":637,\"height\":340,\"caption\":\"Photy by Pixabay\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/wp_get_attachment_image\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vicky.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is wp_get_attachment_image(); Everything You Need To Know.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"name\":\"Vicky.Dev\",\"description\":\"WordPress Developer for Hire\",\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vicky.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\",\"name\":\"Vicky.Dev\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"width\":1074,\"height\":581,\"caption\":\"Vicky.Dev\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\",\"name\":\"Vicky Bhandari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"caption\":\"Vicky Bhandari\"},\"description\":\"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.\",\"url\":\"https:\\\/\\\/vicky.dev\\\/author\\\/vicky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev","description":"If you're using WordPress, then you've probably used the wp_get_attachment_image() function at. But what does it do? Know everything.","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:\/\/vicky.dev\/wp_get_attachment_image\/","og_locale":"en_US","og_type":"article","og_title":"What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev","og_description":"If you're using WordPress, then you've probably used the wp_get_attachment_image() function at. But what does it do? Know everything.","og_url":"https:\/\/vicky.dev\/wp_get_attachment_image\/","og_site_name":"Vicky.Dev","article_published_time":"2022-11-01T11:55:03+00:00","article_modified_time":"2022-11-22T11:11:33+00:00","og_image":[{"width":637,"height":340,"url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","type":"image\/webp"}],"author":"Vicky Bhandari","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vicky Bhandari","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#article","isPartOf":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/"},"author":{"name":"Vicky Bhandari","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c"},"headline":"What is wp_get_attachment_image(); Everything You Need To Know.","datePublished":"2022-11-01T11:55:03+00:00","dateModified":"2022-11-22T11:11:33+00:00","mainEntityOfPage":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/"},"wordCount":626,"commentCount":0,"publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"image":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/","url":"https:\/\/vicky.dev\/wp_get_attachment_image\/","name":"What is wp_get_attachment_image(); Everything You Need To Know. - Vicky.Dev","isPartOf":{"@id":"https:\/\/vicky.dev\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#primaryimage"},"image":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","datePublished":"2022-11-01T11:55:03+00:00","dateModified":"2022-11-22T11:11:33+00:00","description":"If you're using WordPress, then you've probably used the wp_get_attachment_image() function at. But what does it do? Know everything.","breadcrumb":{"@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vicky.dev\/wp_get_attachment_image\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#primaryimage","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","width":637,"height":340,"caption":"Photy by Pixabay"},{"@type":"BreadcrumbList","@id":"https:\/\/vicky.dev\/wp_get_attachment_image\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vicky.dev\/"},{"@type":"ListItem","position":2,"name":"What is wp_get_attachment_image(); Everything You Need To Know."}]},{"@type":"WebSite","@id":"https:\/\/vicky.dev\/#website","url":"https:\/\/vicky.dev\/","name":"Vicky.Dev","description":"WordPress Developer for Hire","publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vicky.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/vicky.dev\/#organization","name":"Vicky.Dev","url":"https:\/\/vicky.dev\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","width":1074,"height":581,"caption":"Vicky.Dev"},"image":{"@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c","name":"Vicky Bhandari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","caption":"Vicky Bhandari"},"description":"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.","url":"https:\/\/vicky.dev\/author\/vicky\/"}]}},"jetpack_featured_media_url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/11\/wordpress-581849__340.webp","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":0,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media\/693"}],"wp:attachment":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}