{"id":82753,"date":"2023-04-04T07:42:33","date_gmt":"2023-04-04T07:42:33","guid":{"rendered":"\/tutorials\/?p=82753"},"modified":"2025-04-26T02:58:18","modified_gmt":"2025-04-26T02:58:18","slug":"wp_get_attachment_image","status":"publish","type":"post","link":"\/in\/tutorials\/wp_get_attachment_image\/","title":{"rendered":"How to Use the wp_get_attachment_image Function in WordPress + Useful Examples"},"content":{"rendered":"<p>The <strong>wp_get_attachment_image<\/strong> is a WordPress function that lets you easily retrieve and display image attachments based on their IDs.<\/p><p>Whether you&rsquo;re building a custom theme or a plugin, this function provides a flexible way to display images with custom sizes and attributes.<\/p><p>In this tutorial, we&rsquo;ll go over the <strong>wp_get_attachment_image()<\/strong> function and explain its parameters. We&rsquo;ll also provide a few popular use cases you can test on your WordPress website.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Mega-WordPress-Cheat-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download all in one WordPress cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-parameters-of-the-wp-get-attachment-image-function\">Parameters of the wp_get_attachment_image Function<\/h2><p>The <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_get_attachment_image\/\" target=\"_blank\" rel=\"noopener\">wp_get_attachment_image()<\/a> function lets users retrieve an HTML <strong>img<\/strong> element for an image attachment.<\/p><pre class=\"wp-block-preformatted\">wp_get_attachment_image( int $attachment_id, string|int[] $size = 'medium', bool $icon = false, string|array $attr = '' );<\/pre><p>By default, the <strong>wp_get_attachment_image() <\/strong>function requires at least one parameter, the attachment ID, which is the unique identifier for the image. The function then outputs the full-sized image without additional HTML attributes or customization.<\/p><p>Furthermore, you can add various additional parameters for customizing the image output, such as the image size, <a href=\"\/in\/tutorials\/css-class\/\">CSS class<\/a>, or alt text:<\/p><p><strong>$attachment_id<\/strong><\/p><p>This is necessary to specify the attachment image ID that will be displayed. If the parameter is empty or set to <strong>false<\/strong>, the function won&rsquo;t return any image.<\/p><p><strong>$size<\/strong><\/p><p>An optional parameter that defines the <a href=\"\/in\/tutorials\/wordpress-images-sizes\/\">WordPress image size<\/a> to display. You can specify any registered image size name, for example, <strong>thumbnail<\/strong>, <strong>medium<\/strong>, <strong>large<\/strong>,<strong> <\/strong>or a custom size in pixels.<\/p><p><strong>$icon<\/strong><\/p><p>Another optional parameter which determines whether the image should be treated as an icon. If set to <strong>true<\/strong>, the function will display the attachment icon instead of the actual image.<\/p><p><strong>$attr<\/strong><\/p><p>This parameter lets you add more attributes to the image tag, such as a class or a style. You can pass an array of key-value pairs to add the following attributes:<\/p><ul class=\"wp-block-list\">\n<li><strong>class<\/strong> &ndash; handles the CSS class of the image tag. You can add multiple classes by creating a space-separated list.<\/li>\n\n\n\n<li><strong>alt<\/strong> &ndash; sets the image&rsquo;s alt text. An alt attribute value is important for accessibility and <a href=\"\/in\/tutorials\/wordpress-seo-tips\/\">WordPress SEO purposes<\/a>.<\/li>\n\n\n\n<li><strong>srcset <\/strong>&ndash; specifies multiple image sources with different resolutions, sizes, or aspect ratios. The browser will automatically choose the best source based on the device&rsquo;s screen resolution.<\/li>\n\n\n\n<li><strong>sizes <\/strong>&ndash;<strong> <\/strong>works together with the <strong>srcset<\/strong> attribute. It specifies the image size displayed on a page based on the available space.<\/li>\n\n\n\n<li><strong>loading<\/strong> &ndash; determines how the image loads. For example, the default value is <strong>lazy<\/strong> for <a href=\"\/in\/tutorials\/wordpress-lazy-load\/\">lazy loading<\/a>.<\/li>\n\n\n\n<li><strong>decoding<\/strong> &ndash; lets you specify how the browser should interpret the image. Valid values are <strong>async<\/strong> to decode the image <strong>asynchronously<\/strong>, <strong>sync<\/strong> to decode the image <strong>synchronously<\/strong>, or <strong>auto<\/strong>.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-use-wp-get-attachment-image\">How to Use wp_get_attachment_image<\/h2><p>In this section, we&rsquo;ll explain how to use the <strong>wp_get_attachment_image()<\/strong> function effectively. Check the commented code below for more information:<\/p><pre class=\"wp-block-preformatted\">&lt;?php\nif ( has_post_thumbnail() ) { \/\/ check if the post has a featured image\n    $thumbnail_id = get_post_thumbnail_id(); \/\/ get the ID of the post thumbnail image\n    $image = wp_get_attachment_image( $thumbnail_id, 'large' ); \/\/ get the HTML code for the post default thumbnail image\n    echo $image; \/\/ display the image\n}\n?&gt;<\/pre><p>Here is what we did:<\/p><ol class=\"wp-block-list\">\n<li>Used the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/has_post_thumbnail\/\" target=\"_blank\" rel=\"noopener\">has_post_thumbnail()<\/a> function to check if the post has a featured image.<\/li>\n\n\n\n<li>Applied <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_post_thumbnail_id\/\" target=\"_blank\" rel=\"noopener\">get_post_thumbnail_id()<\/a> to get the ID of the featured image.<\/li>\n\n\n\n<li>Used the <strong>wp_get_attachment_image()<\/strong> function to get the HTML code for the image.<\/li>\n\n\n\n<li>Passed the <strong>$thumbnail_id<\/strong> variable as the ID of the image and <strong>large<\/strong> as the specified size.<\/li>\n\n\n\n<li>Employed <strong>echo<\/strong> to output the image HTML code to the page.<\/li>\n<\/ol><p>Remember that you can replace the <strong>large<\/strong> parameter with any registered image size.<\/p><h2 class=\"wp-block-heading\" id=\"h-examples-of-the-wp-get-attachment-image-wordpress-function\">Examples of the wp_get_attachment_image WordPress Function<\/h2><p>Check out a few popular use cases for the <strong>wp_get_attachment_image()<\/strong> function to understand how it can help you with your WordPress projects.<\/p><h3 class=\"wp-block-heading\" id=\"h-outputting-a-ready-to-use-html-image\">Outputting a Ready-To-Use HTML Image<\/h3><p>The simplest way to test the <strong>wp_get_attachment_image()<\/strong> function is to pass an image attachment ID to it.<\/p><pre class=\"wp-block-preformatted\">&lt;?php echo wp_get_attachment_image( 37);?&gt;<\/pre><p>Remember that we didn&rsquo;t provide any specific image size in this example. Hence, the function retrieved the full-sized image with attachment ID 37.<\/p><p>In HTML, the output will look like this. The alt text will exist if it is already added:<\/p><pre class=\"wp-block-preformatted\">&lt;img width=\"500\" height=\"500\" src=\"http:\/\/example.com\/wp-content\/uploads\/2024\/03\/image.jpg\" class=\"attachment-full size-full\" alt=\"Alt Attribute\"&gt;<\/pre><p>By default, HTML sets the full-sized images to 500 pixels wide and 500 pixels in height. However, the actual width and height values in pixels may vary depending on their original dimensions.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/wpgetattachmentimage-basicexample.png\"><img decoding=\"async\" width=\"1304\" height=\"1254\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/wpgetattachmentimage-basicexample.png\/w=1024,h=1024,fit=scale-down\" alt=\"A WordPress post with the default wp_get_attachment_image() function added\" class=\"wp-image-82754\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-basicexample.png 1304w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-basicexample-300x288.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-basicexample-1024x985.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-basicexample-150x144.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-basicexample-768x739.png 768w\" sizes=\"(max-width: 1304px) 100vw, 1304px\" \/><\/a><\/figure>\n<\/div><h3 class=\"wp-block-heading\" id=\"h-using-a-custom-size\">Using a Custom Size<\/h3><p>Custom-sized images can improve website performance by reducing page load times and enhancing the overall look. They also ensure consistency across different devices and screens:<\/p><pre class=\"wp-block-preformatted\">&lt;?php echo wp_get_attachment_image( 37, [ 100,100 ], true); ?&gt;<\/pre><p>In HTML, the output will look like this:<\/p><pre class=\"wp-block-preformatted\">&lt;img width=\"40\" height=\"40\" src=\"http:\/\/example.com\/wp-content\/uploads\/2024\/03\/image.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Description for the alt text\"&gt;<\/pre><p>In this case, the second parameter of the <strong>wp_get_attachment_image()<\/strong> function is an array containing the width and height in pixels of the requested image size. The third parameter is set to <strong>true<\/strong>, meaning the function will crop the image to the exact dimensions specified in the array.<\/p><p>Here&rsquo;s how it looks on a live website:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/in\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/wpgetattachmentimage-iconexample.png\"><img decoding=\"async\" width=\"1358\" height=\"1034\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/wpgetattachmentimage-iconexample.png\/w=1024,h=1024,fit=scale-down\" alt=\"A WordPress post with the wp_get_attachment_image() function added. Additional icon parameters were used\" class=\"wp-image-82755\" srcset=\"https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-iconexample.png 1358w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-iconexample-300x228.png 300w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-iconexample-1024x780.png 1024w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-iconexample-150x114.png 150w, https:\/\/www.hostinger.com\/in\/tutorials\/wp-content\/uploads\/sites\/52\/2023\/04\/wpgetattachmentimage-iconexample-768x585.png 768w\" sizes=\"(max-width: 1358px) 100vw, 1358px\" \/><\/a><\/figure>\n<\/div><h3 class=\"wp-block-heading\" id=\"h-displaying-all-images-associated-with-the-post\">Displaying All Images Associated With the Post<\/h3><p>You can display all images associated with a specific post ID. Doing so lets you view all the relevant pictures without navigating through the whole post.<\/p><pre class=\"wp-block-preformatted\">&lt;?php\n$attachments = get_attached_media('image', get_the_ID());\nif (!empty($attachments)) {\n    foreach ($attachments as $image) {\n        echo wp_get_attachment_image($image-&gt;ID, 'full');\n    }\n} \n?&gt;<\/pre><p>In this example, the code retrieves all the attached images of the current post using the <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/get_attached_media\/\" target=\"_blank\" rel=\"noopener\">get_attached_media()<\/a> function and loops through them using a foreach loop.<\/p><p>For each image, it calls the <strong>wp_get_attachment_image()<\/strong> function to retrieve the full-sized version of the image with the attachment ID.<\/p><h3 class=\"wp-block-heading\" id=\"h-specifying-class-alt-and-title-attributes-of-an-image\">Specifying Class, Alt, and Title Attributes of an Image<\/h3><p>It&rsquo;s also possible to specify custom class, alt text, and title attributes for an image. All you need to do is set them to a variable. In our case, its <strong>$custom<\/strong>:<\/p><pre class=\"wp-block-preformatted\">&lt;?php\n$custom = [ 'class' =&gt; 'my-class', 'alt' =&gt; 'alt text', 'title' =&gt; 'my title' ];\necho wp_get_attachment_image( 37, 'medium', false, $custom );\n?&gt;<\/pre><p>In this example, the fourth parameter is an array containing the additional attributes for the <strong>&lt;img&gt; <\/strong>tag.<\/p><figure class=\"wp-block-image size-large\"><a href=\"\/in\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/52\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p><strong>wp_get_attachment_image()<\/strong> is a versatile WordPress function that enables you to easily display images attached to posts or pages.<\/p><p>In this tutorial, we&rsquo;ve covered the<strong> wp_get_attachment_image()<\/strong> function and its parameters. We&rsquo;ve also provided some use cases you can test on your WordPress website.<\/p><p>We hope that you found this tutorial useful. In case you have any questions, leave a comment below.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Discover More About WordPress                <\/p>\n            <\/div>\n            <p class=\"protip__content\"><br>\n<a href=\"\/in\/tutorials\/wordpress\/\">WordPress Tutorial<\/a><br>\n<a href=\"\/in\/tutorials\/the-loop-wordpress\/\">What Is the WordPress Loop<\/a><br>\n<a href=\"\/in\/tutorials\/wordpress-featured-images\/\">What Is a WordPress Featured Image<\/a><br>\n<a href=\"\/in\/tutorials\/optimize-images-wordpress\/\">How to Optimize Images for WordPress<\/a><br>\n<a href=\"\/in\/tutorials\/how-to-use-wp_update_post\/\">How to Use wp_update_post Function<\/a><br>\n<a href=\"\/in\/tutorials\/wordpress-get-post-meta\/\">How to Use WordPress get_post_meta Function<\/a><\/p>\n                    <\/div>\n        \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The wp_get_attachment_image is a WordPress function that lets you easily retrieve and display image attachments based on their IDs. Whether you&rsquo;re building a custom theme or a plugin, this function provides a flexible way to display images with custom sizes and attributes. In this tutorial, we&rsquo;ll go over the wp_get_attachment_image() function and explain its parameters. [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/in\/tutorials\/wp_get_attachment_image\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"","rank_math_description":"","rank_math_focus_keyword":"","footnotes":""},"categories":[],"tags":[],"class_list":["post-82753","post","type-post","status-publish","format-standard","hentry"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-use-wp-get-attachment-image-wordpress-function\/","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/wp_get_attachment_image\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/wp_get_attachment_image\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-use-the-wp_get_attachment_image-function-in-wordpress-useful-examples\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-use-the-wp_get_attachment_image-function-in-wordpress-useful-examples\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp_get_attachment_image\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/wp_get_attachment_image\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-use-wp-get-attachment-image-wordpress-function\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-use-wp-get-attachment-image-wordpress-function\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-use-wp-get-attachment-image-wordpress-function\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/wp_get_attachment_image\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/wp_get_attachment_image\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/wp_get_attachment_image\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/wp_get_attachment_image\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/comments?post=82753"}],"version-history":[{"count":9,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82753\/revisions"}],"predecessor-version":[{"id":123027,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/posts\/82753\/revisions\/123027"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/media?parent=82753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/categories?post=82753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/in\/tutorials\/wp-json\/wp\/v2\/tags?post=82753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}