{"id":23350,"date":"2015-02-26T23:01:51","date_gmt":"2015-02-26T15:01:51","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=23350"},"modified":"2024-02-21T17:15:41","modified_gmt":"2024-02-21T09:15:41","slug":"wordpress-attachment-pages","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/","title":{"rendered":"WordPress Attachment Pages: A Beginner&#8217;s Guide"},"content":{"rendered":"<p>Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress \u2013 be it an image, audio, video, or any other type \u2013 can have its own dedicated page, similar to any other post. By ensuring your attachment pages are well-structured and contain relevant information, you can enhance your website\u2019s depth and potentially <strong>increase your SEO score<\/strong>.<\/p>\n<p>Furthermore, attachment pages offer a unique feature allowing users to comment on images, which can be particularly beneficial for media-related professions. This article will explore the nuances of this relatively obscure page type and demonstrate how you can integrate it into your theme with some simple coding.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-1\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-tweaks-for-post-management\/\" class=\"ref-block__link\" title=\"Read More: 29 WordPress Tweaks to Enhance Posts and Pages\" rel=\"bookmark\"><span class=\"screen-reader-text\">29 WordPress Tweaks to Enhance Posts and Pages<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-tweaks-for-post-management.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-71063 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-tweaks-for-post-management.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">29 WordPress Tweaks to Enhance Posts and Pages<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tWordPress is a fantastic CMS, but sometimes its default settings, especially how posts are displayed, might not fit...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<h2>Understanding WordPress Attachments<\/h2>\n<p>If you\u2019re a WordPress user but not deeply involved in development, it may come as a surprise that uploaded items, such as images, are stored in the same manner as posts and pages. In essence, they are considered posts, distinguished only by the <code>post_type<\/code> attribute in the database. Posts are labeled as \u2018post\u2019, pages as \u2018page\u2019, and attachments carry the \u2018attachment\u2019 designation.<\/p>\n<p>This classification system underscores the integral role of attachments within the WordPress ecosystem. An uploaded image, for instance, is assigned a title, an author, a publication date, and similar metadata applicable to standard posts, with the primary distinction being the inclusion of the file\u2019s location within the post meta table.<\/p>\n<p>Thus, an attachment page serves as a dedicated showcase for a single attachment, paralleling how a post page or a static page displays its respective content.<\/p>\n<h2>Attachment Page Example<\/h2>\n<p>A prime illustration of an attachment page\u2019s potential is found within the visually appealing <a href=\"https:\/\/twentyfifteendemo.wordpress.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Twenty Fifteen<\/a> theme.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg\" alt=\"Example of an attachment page in the Twenty Fifteen WordPress theme\" width=\"844\" height=\"956\"><\/figure>\n<p>Upon uploading an image to this theme, filling out its title, caption, description, and alt text enriches the attachment page\u2019s content significantly. Notably, the inclusion of image size details in the post footer enhances the page\u2019s utility and user engagement.<\/p>\n<h2>Does Your Theme Support Attachment Pages?<\/h2>\n<p>The capability of your theme to properly display attachment pages can vary, leading to mixed experiences. Discovering whether your theme accommodates attachment pages involves a simple test.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/attachment-page.jpg\" alt=\"Navigating to a WordPress attachment page\" width=\"342\" height=\"175\"><\/figure>\n<p>Add an image to any post, ensuring you select the <strong>\u201cAttachment Page\u201d<\/strong> option in the \u201cLink To\u201d dropdown menu. After publishing or updating your post, visiting it and clicking the image will navigate you to its attachment page. The appearance of this page heavily depends on your theme\u2019s design.<\/p>\n<p>Understanding why attachment pages vary requires a brief overview of WordPress\u2019s template hierarchy. This system decides which template file to use for displaying content, with rules for everything from the front page to individual posts and special pages like archives.<\/p>\n<p>In essence, WordPress prioritizes specific template files over others based on the context of the visit. For instance, a tag archive page might look for a <em>tag-music.php<\/em> before settling for a <em>tag.php<\/em>, then <em>archive.php<\/em>, and ultimately defaulting to <em>index.php<\/em> if none are available.<\/p>\n<p>This hierarchy means that, in the absence of a designated attachment page template (like <em>attachment.php<\/em>), WordPress will use <em>index.php<\/em>. If your theme\u2019s <em>index.php<\/em> isn\u2019t optimized for displaying attachments or if the theme lacks an <em>attachment.php<\/em> file, attachment pages might not display as intended. However, if the theme includes proper support for attachments, these pages can look just as polished as the rest of your site.<\/p>\n<h2>Creating Your Own Attachment Page<\/h2>\n<p>If your theme lacks an <em>attachment.php<\/em> file, it\u2019s essential to add one to enhance your site\u2019s functionality.<\/p>\n<p>For exclusive themes, directly adding an <em>attachment.php<\/em> file is straightforward. However, for third-party themes, it\u2019s advisable to use a <a href=\"https:\/\/codex.wordpress.org\/Child_Themes\" rel=\"nofollow noopener\" target=\"_blank\">child theme<\/a> to make modifications without altering the original theme files. Establishing a child theme is a straightforward process, and once set up, you can add your <em>attachment.php<\/em> file there.<\/p>\n<div class=\"ref-block ref-block--post\" id=\"ref-post-2\">\n\t\t\t\t\t<a href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-child-themes-dev\/\" class=\"ref-block__link\" title=\"Read More: A Guide To: WordPress Child Themes Development\" rel=\"bookmark\"><span class=\"screen-reader-text\">A Guide To: WordPress Child Themes Development<\/span><\/a>\n<div class=\"ref-block__thumbnail img-thumb img-thumb--jumbo\" data-img='{ \"src\" : \"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-child-themes-dev.jpg\" }'>\n\t\t\t\t\t\t\t<noscript>\n<style>.no-js #ref-block-post-14571 .ref-block__thumbnail { background-image: url(\"https:\/\/assets.hongkiat.com\/uploads\/thumbs\/250x160\/wordpress-child-themes-dev.jpg\"); }<\/style>\n<\/noscript>\n\t\t\t\t\t\t<\/div>\n<div class=\"ref-block__summary\">\n<h4 class=\"ref-title\">A Guide To: WordPress Child Themes Development<\/h4>\n<p class=\"ref-description\">\n\t\t\t\t\t\tThere are a number of reasons that WordPress developers are starting to use child themes. They give you...\t\t\t\t\t\t<span>Read more<\/span><\/p>\n<\/div>\n<\/div>\n<p>Begin by locating your theme\u2019s <em>single.php<\/em> file, then copy its contents into your newly created attachment file. This approach works well for the majority of themes. However, you might need to remove elements specific to single posts or, in some cases, use the <em>page.php<\/em> file\u2019s content for better compatibility.<\/p>\n<h2>Why Attachment Pages Matter<\/h2>\n<p>Attachment pages are a powerful but often overlooked feature of WordPress. They can significantly enhance your site\u2019s SEO by providing additional, indexable content and enriching user experience with detailed captions and descriptions. Furthermore, these pages enable user interaction through comments, making them particularly valuable for visual artists, photographers, and musicians.<\/p>\n<p>For developers and theme designers, the presence and quality of attachment pages can serve as a measure of a theme\u2019s thoroughness and attention to detail. A well-crafted attachment page indicates a commitment to delivering a comprehensive and user-friendly theme.<\/p>\n<p><strong>Note:<\/strong> This post was first published on February 26, 2015.<\/p>","protected":false},"excerpt":{"rendered":"<p>Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress \u2013 be it an image, audio, video, or any other type \u2013 can have its own dedicated page, similar to any other post. By ensuring your attachment pages are well-structured and contain relevant information, you can enhance your&hellip;<\/p>\n","protected":false},"author":143,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[4663,252],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>WordPress Attachment Pages: A Beginner&#039;s Guide - Hongkiat<\/title>\n<meta name=\"description\" content=\"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Attachment Pages: A Beginner&#039;s Guide\" \/>\n<meta property=\"og:description\" content=\"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2015-02-26T15:01:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-21T09:15:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg\" \/>\n<meta name=\"author\" content=\"Daniel Pataki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Daniel Pataki\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/\"},\"author\":{\"name\":\"Daniel Pataki\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/76d3b3baacd688e9a0d7bd24553519bc\"},\"headline\":\"WordPress Attachment Pages: A Beginner&#8217;s Guide\",\"datePublished\":\"2015-02-26T15:01:51+00:00\",\"dateModified\":\"2024-02-21T09:15:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/\"},\"wordCount\":788,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-attachment-pages\\\/twenty-fifteen-attachment-page.jpg\",\"keywords\":[\"ad-divi\",\"WordPress Tips\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/\",\"name\":\"WordPress Attachment Pages: A Beginner's Guide - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-attachment-pages\\\/twenty-fifteen-attachment-page.jpg\",\"datePublished\":\"2015-02-26T15:01:51+00:00\",\"dateModified\":\"2024-02-21T09:15:41+00:00\",\"description\":\"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-attachment-pages\\\/twenty-fifteen-attachment-page.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/wordpress-attachment-pages\\\/twenty-fifteen-attachment-page.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wordpress-attachment-pages\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Attachment Pages: A Beginner&#8217;s Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/76d3b3baacd688e9a0d7bd24553519bc\",\"name\":\"Daniel Pataki\",\"description\":\"Daniel is a writer for Hongkiat.com. When not coding or writing, you'll find him playing board games or running with his dog. You can drop him a line on Twitter or visit his personal website.\",\"sameAs\":[\"http:\\\/\\\/danielpataki.com\\\/\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/danielpataki\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WordPress Attachment Pages: A Beginner's Guide - Hongkiat","description":"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any","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:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Attachment Pages: A Beginner's Guide","og_description":"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any","og_url":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2015-02-26T15:01:51+00:00","article_modified_time":"2024-02-21T09:15:41+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg","type":"","width":"","height":""}],"author":"Daniel Pataki","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Daniel Pataki","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/"},"author":{"name":"Daniel Pataki","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/76d3b3baacd688e9a0d7bd24553519bc"},"headline":"WordPress Attachment Pages: A Beginner&#8217;s Guide","datePublished":"2015-02-26T15:01:51+00:00","dateModified":"2024-02-21T09:15:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/"},"wordCount":788,"commentCount":7,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg","keywords":["ad-divi","WordPress Tips"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/","url":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/","name":"WordPress Attachment Pages: A Beginner's Guide - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg","datePublished":"2015-02-26T15:01:51+00:00","dateModified":"2024-02-21T09:15:41+00:00","description":"Attachment pages are not very well known or understood in WordPress. Each item you upload through WordPress &#8211; be it an image, audio, video, or any","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/wordpress-attachment-pages\/twenty-fifteen-attachment-page.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/wordpress-attachment-pages\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress Attachment Pages: A Beginner&#8217;s Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/76d3b3baacd688e9a0d7bd24553519bc","name":"Daniel Pataki","description":"Daniel is a writer for Hongkiat.com. When not coding or writing, you'll find him playing board games or running with his dog. You can drop him a line on Twitter or visit his personal website.","sameAs":["http:\/\/danielpataki.com\/"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/danielpataki\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-64C","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/143"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=23350"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23350\/revisions"}],"predecessor-version":[{"id":71348,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/23350\/revisions\/71348"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=23350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=23350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=23350"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=23350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}