{"id":24093,"date":"2025-11-20T07:26:04","date_gmt":"2025-11-20T07:26:04","guid":{"rendered":"https:\/\/ourdemy.dev\/?p=24093"},"modified":"2025-11-20T08:54:18","modified_gmt":"2025-11-20T08:54:18","slug":"how-do-i-add-a-postgrid-to-my-page-and-customize-the-number-of-posts-displayed","status":"publish","type":"post","link":"https:\/\/ourdemy.com\/ja\/how-do-i-add-a-postgrid-to-my-page-and-customize-the-number-of-posts-displayed\/","title":{"rendered":"\u30da\u30fc\u30b8\u306b\u30dd\u30b9\u30c8\u30b0\u30ea\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3001\u8868\u793a\u3059\u308b\u6295\u7a3f\u6570\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u304b\uff1f"},"content":{"rendered":"<div style=\"width: 100%; padding: 0 clamp(16px, 4vw, 64px); box-sizing: border-box;\">\n            <div style=\"position: relative; background-color: white; border-radius: 12px; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); margin: 0 auto 16px auto; transition: all 0.2s; max-width: 800px;\">\n              <div style=\"display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 16px) clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px);\">\n                <div style=\"display: flex; align-items: center; gap: 12px; flex: 1;\">\n                  <div style=\"position: relative; flex-shrink:0;\">\n                    <span style=\"background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\">\n                      1\n                    <\/span>\n                  <\/div>\n                  <div style=\"display: flex; align-items: center; gap: 8px; flex-1; min-width: 0;\">\n                    <div style=\"font-size: 14px; color: #1f2937; line-height: 1.625; cursor: pointer; padding: 8px; border-radius: 4px; transition: all 0.2s; border: 1px solid transparent; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; flex: 1;\">\u30da\u30fc\u30b8\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\u3067\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u4e00\u89a7\u3092\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001<span style=\"background-color: #dbeafe; color: #1d4ed8; padding: 1px 4px; margin: 1px 0; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #bfdbfe; display: inline-block; white-space: nowrap; vertical-align: baseline;\">PostGrid<\/span>\u3092\u30da\u30fc\u30b8\u5185\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u6240\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002<\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n              \n            <div style=\"padding: 0 16px 16px 16px;\">\n              <div style=\"position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7eb; background-color: #f9fafb; width: 100%;\">\n                <img fetchpriority=\"high\" decoding=\"async\" width=\"1440\" height=\"991\" src=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-12da316fcebc8686-1763628837.gif\" class=\"wp-image-24464\" alt=\"Screenshot for step 1\" style=\"display: block; width: 100%; height: auto; object-fit: cover;\" \/>\n              <\/div>\n            <\/div>\n          \n            <\/div>\n          <\/div>\n        \n          <div style=\"width: 100%; padding: 0 clamp(16px, 4vw, 64px); box-sizing: border-box;\">\n            <div style=\"position: relative; background-color: white; border-radius: 12px; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); margin: 0 auto 16px auto; transition: all 0.2s; max-width: 800px;\">\n              <div style=\"display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 16px) clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px);\">\n                <div style=\"display: flex; align-items: center; gap: 12px; flex: 1;\">\n                  <div style=\"position: relative; flex-shrink:0;\">\n                    <span style=\"background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\">\n                      2\n                    <\/span>\n                  <\/div>\n                  <div style=\"display: flex; align-items: center; gap: 8px; flex-1; min-width: 0;\">\n                    <div style=\"font-size: 14px; color: #1f2937; line-height: 1.625; cursor: pointer; padding: 8px; border-radius: 4px; transition: all 0.2s; border: 1px solid transparent; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; flex: 1;\">\u8868\u793a\u3059\u308b\u6295\u7a3f\u6570\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001<span style=\"background-color: #dbeafe; color: #1d4ed8; padding: 1px 4px; margin: 1px 0; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #bfdbfe; display: inline-block; white-space: nowrap; vertical-align: baseline;\">Number of Posts<\/span>\u8a2d\u5b9a\u3067\u8abf\u6574\u3057\u307e\u3059\u3002\n\u203b\u6ce8\u610f: \u3053\u3053\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u300cPublished\u300d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u6295\u7a3f\u306e\u307f\u3067\u3059\u3002<\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n              \n            <div style=\"padding: 0 16px 16px 16px;\">\n              <div style=\"position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7eb; background-color: #f9fafb; width: 100%;\">\n                <img decoding=\"async\" width=\"1518\" height=\"753\" src=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854.png\" class=\"wp-image-24465\" alt=\"Screenshot for step 2\" style=\"display: block; width: 100%; height: auto; object-fit: cover;\" srcset=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854.png 1518w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-300x149.png 300w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-1024x508.png 1024w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-768x381.png 768w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-18x9.png 18w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-710x352.png 710w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-20a399e5b7a5fa21-1763628854-600x298.png 600w\" sizes=\"(max-width: 1518px) 100vw, 1518px\" \/>\n              <\/div>\n            <\/div>\n          \n            <\/div>\n          <\/div>\n        \n          <div style=\"width: 100%; padding: 0 clamp(16px, 4vw, 64px); box-sizing: border-box;\">\n            <div style=\"position: relative; background-color: white; border-radius: 12px; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); margin: 0 auto 16px auto; transition: all 0.2s; max-width: 800px;\">\n              <div style=\"display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 16px) clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px);\">\n                <div style=\"display: flex; align-items: center; gap: 12px; flex: 1;\">\n                  <div style=\"position: relative; flex-shrink:0;\">\n                    <span style=\"background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\">\n                      3\n                    <\/span>\n                  <\/div>\n                  <div style=\"display: flex; align-items: center; gap: 8px; flex-1; min-width: 0;\">\n                    <div style=\"font-size: 14px; color: #1f2937; line-height: 1.625; cursor: pointer; padding: 8px; border-radius: 4px; transition: all 0.2s; border: 1px solid transparent; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; flex: 1;\"><span style=\"background-color: #dbeafe; color: #1d4ed8; padding: 1px 4px; margin: 1px 0; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #bfdbfe; display: inline-block; white-space: nowrap; vertical-align: baseline;\">\u4e0b\u66f8\u304d<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304b\u3089<span style=\"background-color: #dbeafe; color: #1d4ed8; padding: 1px 4px; margin: 1px 0; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #bfdbfe; display: inline-block; white-space: nowrap; vertical-align: baseline;\">\u4e0b\u66f8\u304d\u3092\u4fdd\u5b58<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u5909\u66f4\u5185\u5bb9\u3092\u516c\u958b\u305b\u305a\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n              \n            <div style=\"padding: 0 16px 16px 16px;\">\n              <div style=\"position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7eb; background-color: #f9fafb; width: 100%;\">\n                <img decoding=\"async\" width=\"1396\" height=\"800\" src=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855.png\" class=\"wp-image-24466\" alt=\"Screenshot for step 3\" style=\"display: block; width: 100%; height: auto; object-fit: cover;\" srcset=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855.png 1396w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-300x172.png 300w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-1024x587.png 1024w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-768x440.png 768w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-18x10.png 18w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-710x407.png 710w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-66eb976499cc27f9-1763628855-600x344.png 600w\" sizes=\"(max-width: 1396px) 100vw, 1396px\" \/>\n              <\/div>\n            <\/div>\n          \n            <\/div>\n          <\/div>\n        \n          <div style=\"width: 100%; padding: 0 clamp(16px, 4vw, 64px); box-sizing: border-box;\">\n            <div style=\"position: relative; background-color: white; border-radius: 12px; border: 1px solid #f3f4f6; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); margin: 0 auto 16px auto; transition: all 0.2s; max-width: 800px;\">\n              <div style=\"display: flex; align-items: center; justify-content: space-between; padding: clamp(12px, 3vw, 16px) clamp(12px, 3vw, 16px) clamp(10px, 2.5vw, 12px) clamp(12px, 3vw, 16px);\">\n                <div style=\"display: flex; align-items: center; gap: 12px; flex: 1;\">\n                  <div style=\"position: relative; flex-shrink:0;\">\n                    <span style=\"background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);\">\n                      4\n                    <\/span>\n                  <\/div>\n                  <div style=\"display: flex; align-items: center; gap: 8px; flex-1; min-width: 0;\">\n                    <div style=\"font-size: 14px; color: #1f2937; line-height: 1.625; cursor: pointer; padding: 8px; border-radius: 4px; transition: all 0.2s; border: 1px solid transparent; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; flex: 1;\">\u307e\u305f\u306f <span style=\"background-color: #dbeafe; color: #1d4ed8; padding: 1px 4px; margin: 1px 0; border-radius: 4px; font-size: 12px; font-weight: 500; border: 1px solid #bfdbfe; display: inline-block; white-space: nowrap; vertical-align: baseline;\">\u516c\u958b<\/span>\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u5909\u66f4\u5185\u5bb9\u3092\u30b5\u30a4\u30c8\u4e0a\u306b\u53cd\u6620\u3057\u3066\u516c\u958b\u3067\u304d\u307e\u3059\u3002<\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n              \n            <div style=\"padding: 0 16px 16px 16px;\">\n              <div style=\"position: relative; overflow: hidden; border-radius: 8px; border: 1px solid #e5e7eb; background-color: #f9fafb; width: 100%;\">\n                <img loading=\"lazy\" decoding=\"async\" width=\"1396\" height=\"800\" src=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856.png\" class=\"wp-image-24467\" alt=\"Screenshot for step 4\" style=\"display: block; width: 100%; height: auto; object-fit: cover;\" srcset=\"https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856.png 1396w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-300x172.png 300w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-1024x587.png 1024w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-768x440.png 768w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-18x10.png 18w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-710x407.png 710w, https:\/\/ourdemy.com\/wp-content\/uploads\/2025\/11\/remote-img-bd15a806b455af64-1763628856-600x344.png 600w\" sizes=\"(max-width: 1396px) 100vw, 1396px\" \/>\n              <\/div>\n            <\/div>\n          \n            <\/div>\n          <\/div>","protected":false},"excerpt":{"rendered":"<p>1 \u30da\u30fc\u30b8\u30a8\u30c7\u30a3\u30bf\u30fc\u753b\u9762\u3067\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u4e00\u89a7\u3092\u4e0b\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001PostGrid\u3092\u30da\u30fc\u30b8\u5185\u3067\u8868\u793a\u3057\u305f\u3044\u5834\u6240\u306b\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3057\u307e\u3059\u3002 2 \u8868\u793a\u3059\u308b\u6295\u7a3f\u6570\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001Number of Posts\u8a2d\u5b9a\u3067\u8abf\u6574\u3057\u307e\u3059\u3002 \u203b\u6ce8\u610f: \u3053\u3053\u306b\u8868\u793a\u3055\u308c\u308b\u306e\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u300cPublished\u300d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u6295\u7a3f\u306e\u307f\u3067\u3059\u3002 3 \u4e0b\u66f8\u304d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304b\u3089\u4e0b\u66f8\u304d\u3092\u4fdd\u5b58\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u5909\u66f4\u5185\u5bb9\u3092\u516c\u958b\u305b\u305a\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002 4 \u307e\u305f\u306f \u516c\u958b\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u5909\u66f4\u5185\u5bb9\u3092\u30b5\u30a4\u30c8\u4e0a\u306b\u53cd\u6620\u3057\u3066\u516c\u958b\u3067\u304d\u307e\u3059\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,34],"tags":[],"class_list":["post-24093","post","type-post","status-publish","format-standard","hentry","category-customize-your-site","category-help-center"],"_links":{"self":[{"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/posts\/24093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/comments?post=24093"}],"version-history":[{"count":4,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/posts\/24093\/revisions"}],"predecessor-version":[{"id":24469,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/posts\/24093\/revisions\/24469"}],"wp:attachment":[{"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/media?parent=24093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/categories?post=24093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ourdemy.com\/ja\/wp-json\/wp\/v2\/tags?post=24093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}