{"id":10173,"date":"2026-04-29T16:20:31","date_gmt":"2026-04-29T16:20:31","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10173"},"modified":"2026-10-16T02:42:41","modified_gmt":"2026-10-16T02:42:41","slug":"how-to-create-an-image-gallery-in-hostinger-ai-builder-agentic-mode","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-create-an-image-gallery-in-hostinger-ai-builder-agentic-mode\/","title":{"rendered":"Hostinger AI Builder: How to create an image gallery in agentic mode"},"content":{"rendered":"<p>Create a dynamic image gallery for your <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder\" href=\"https:\/\/hostinger.com\/ai-builder\" target=\"_blank\" rel=\"noopener\">Hostinger AI Builder<\/a> agentic mode website, managed directly from the <strong>Data<\/strong> tab. This setup works well for portfolios, product showcases, or event photos. New images you add in<strong> Test data<\/strong> appear on your live website when you publish. Edit images that are already on your live website in <strong>Live data.<\/strong><\/p><h2 id=\"h-step-1-prompt-ai-builder-to-create-the-gallery\"><b>Step 1 &ndash; Prompt AI Builder to create the gallery<\/b><\/h2><p><span style=\"font-weight: 400\">In the Hostinger AI Builder chat, use a specific prompt to generate the gallery structure and the backend collection.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\"><strong>Open the Hostinger AI Builder chat<\/strong> interface.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter a <strong>prompt<\/strong> that defines both the design and the data source, such as:<\/span><i><span style=\"font-weight: 400\"> &ldquo;Create a photo gallery section on my homepage. Store the gallery images in a data collection called &ldquo;Gallery&rdquo;. Each entry should have an image field and an optional caption field. Display the images in a grid layout. The gallery should automatically show all images added to the Gallery collection&rdquo;<\/span><\/i><\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">Be specific about your preferred layout, such as grid or masonry, and the number of columns to get the best result.<\/div><h2 id=\"h-step-2-access-the-data-tab\"><b>Step 2 &ndash; Access the Data tab<\/b><\/h2><p><span style=\"font-weight: 400\">Once Hostinger AI Builder builds your gallery, you must access the data to manage the content.<\/span><\/p><ol>\n<li><span style=\"font-weight: 400\">Open your project in Hostinger AI Builder.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Click the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> toggle at the top of the preview screen.<\/span><\/li>\n<li><span style=\"font-weight: 400\">Locate the <\/span><b>Gallery<\/b><span style=\"font-weight: 400\"> collection in the left panel.<br>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-10174\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1024x412.png\" alt=\"Hostinger AI Builder data tab with Test data selected and gallery collection highlighted\" width=\"1024\" height=\"412\" data-media-id=\"10174\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1024x412.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-300x121.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-768x309.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1-1536x618.png 1536w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery1.png 1906w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/span><\/li>\n<\/ol><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">If the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> toggle is unavailable, re-send the prompt from Step 1 to ensure Hostinger AI Builder creates the collection correctly.<\/span><\/div><h2 id=\"h-step-3-add-images-to-the-gallery\"><b>Step 3 &ndash; Add images to the gallery<\/b><\/h2><p><span style=\"font-weight: 400\">You can now populate your gallery without editing the website design.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><b>Gallery<\/b><span style=\"font-weight: 400\"> collection and click <\/span><b>Add record<\/b><span style=\"font-weight: 400\">.<br>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-10175\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-1024x495.png\" alt=\"Data panel showing gallery collection with highlighted New Record button and sidebar item\" width=\"1024\" height=\"495\" data-media-id=\"10175\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-1024x495.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-300x145.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2-768x371.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery2.png 1352w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Upload your file in the image field.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10176\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3.png\" alt=\"Gallery form with Upload new file button highlighted\" width=\"891\" height=\"675\" data-media-id=\"10176\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3.png 891w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3-300x227.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery3-768x582.png 768w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Add a caption in the caption field if desired.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><b>Create<\/b><span style=\"font-weight: 400\">.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10177\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4.png\" alt=\"Create button highlighted in a new gallery record form\" width=\"901\" height=\"690\" data-media-id=\"10177\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4.png 901w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4-300x230.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery4-768x588.png 768w\" sizes=\"(max-width: 901px) 100vw, 901px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Repeat these steps for each photo you wish to display.<\/span><\/li>\n<\/ol><h2 id=\"h-step-4-edit-or-remove-gallery-images\"><b>Step 4 &ndash; Edit or remove gallery images<\/b><\/h2><p><span style=\"font-weight: 400\">Manage your existing records to keep your gallery up to date.<\/span><\/p><ol>\n<li style=\"font-weight: 400\"><b>Replace an image<\/b><span style=\"font-weight: 400\">: Click the specific record, update the image field, and save the changes.<br>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-10178\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-1024x581.png\" alt=\"Gallery record edit form with Remove file button highlighted in the image field\" width=\"1024\" height=\"581\" data-media-id=\"10178\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-1024x581.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-300x170.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5-768x436.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery5.png 1312w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Delete an image<\/b><span style=\"font-weight: 400\">: Select the image and click &ldquo;Delete selected&rdquo;.<br>\n<img decoding=\"async\" class=\"alignnone size-large wp-image-10179\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-1024x584.png\" alt=\"Selected gallery record checkbox and Delete selected button in data table\" width=\"1024\" height=\"584\" data-media-id=\"10179\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-1024x584.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-300x171.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6-768x438.png 768w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/04\/gallery6.png 1347w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/span><span style=\"font-weight: 400\"><br>\n<\/span><\/li>\n<\/ol><p><span style=\"font-weight: 400\"><a data-click-id=\"hgr-post-content-link-publish-your-changes\" href=\"https:\/\/www.hostinger.com\/support\/10506149-hostinger-ai-builder-agentic-mode-how-to-publish-your-app\/\">Publish your changes<\/a> to add new gallery images to your live website. Your image gallery&nbsp;is now fully functional and easy to update.<\/span><\/p><p><strong>NOTES<\/strong><\/p><ul>\n<li>Publishing copies new gallery images from<strong> Test data<\/strong> to <strong>Live data<\/strong>. Edits and deletions you make in <strong>Test data<\/strong> aren&rsquo;t copied to<strong> Live data<\/strong>. To change an image that is already on your live website, edit the record in <strong>Live data<\/strong>. Learn more about <a data-click-id=\"hgr-post-content-link-how-to-use-test-and-live-data-in-agentic-mode\" href=\"https:\/\/www.hostinger.com\/support\/hostinger-ai-builder-agentic-mode-how-to-use-test-and-live-data-in-the-integrated-backend\/\">how to use test and live data in agentic mode<\/a>.<\/li>\n<li>If you also want to connect external services to your project, such as payment processors or APIs, see <a data-click-id=\"hgr-post-content-link-how-to-use-integrations-in-agentic-mode\" href=\"https:\/\/www.hostinger.com\/support\/11132691-hostinger-ai-builder-agentic-mode-how-to-use-integrations\/\">how to use integrations in agentic mode.<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create a dynamic photo gallery managed from the Data tab in Hostinger AI Builder agentic mode.<\/p>\n","protected":false},"author":591,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-10173","post","type-post","status-publish","format-standard","hentry","category-ai-builder"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-create-an-image-gallery-in-hostinger-ai-builder-agentic-mode","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/591"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10173"}],"version-history":[{"count":14,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173\/revisions"}],"predecessor-version":[{"id":20770,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10173\/revisions\/20770"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}