{"id":2506,"date":"2026-10-20T08:34:09","date_gmt":"2026-10-20T07:34:09","guid":{"rendered":"https:\/\/wpgeodirectory.com\/documentation\/article\/export-import-listing-images\/"},"modified":"2026-10-20T08:39:20","modified_gmt":"2026-10-20T07:39:20","slug":"export-import-listing-images","status":"publish","type":"gd_place","link":"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/export-import-listing-images\/","title":{"rendered":"How to export and import listing images in GeoDirectory"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">GeoDirectory&#8217;s listing export includes each listing&#8217;s images in the <code>post_images<\/code> column. How you import them depends on whether the CSV goes back into the same site or into a new one.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What the post_images column holds<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each image is written as <code>url|media ID|title|caption<\/code>, and images are separated by two colons, <code>::<\/code>. The first image is the featured image.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Importing back into the same site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Leave <code>post_images<\/code> as it was exported. The media IDs point to images already in your library, so the importer keeps them and only updates their order, titles and captions. Keep the ID column too, and at GeoDirectory &gt; Settings &gt; Import\/Export &gt; Listings set If post ID exists to Update listing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Moving listings to another site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Media IDs from the old site mean nothing on the new one, so remove them and let the importer download the images:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Export the listings from the old site.<\/li>\n\n\n\n<li>In the CSV, empty the ID column so the import creates new listings.<\/li>\n\n\n\n<li>In <code>post_images<\/code>, remove the media ID from every image so each one reads <code>url||title|caption<\/code>.<\/li>\n\n\n\n<li>Keep the old site online and import the CSV on the new site. The importer downloads each image from its URL into the new media library.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Image URLs must end in a file name with an extension such as .jpg. A URL that starts with <code>#<\/code> is kept as an external image and isn&#8217;t downloaded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding images to new listings<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">For new listings you can also upload the image files yourself, by FTP or your host&#8217;s file manager, into the current month&#8217;s uploads folder (for example <code>wp-content\/uploads\/2026\/10<\/code>), and put only the file name in <code>post_images<\/code>, such as <code>hotel.jpg|||<\/code>. Every file in the folder needs a unique name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Full format details and examples: <a href=\"https:\/\/wpgeodirectory.com\/documentation\/article\/how-tos\/how-to-format-the-csv-file-for-importing-listing-images\/\">How to format the CSV file for importing listing images<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GeoDirectory&#8217;s listing export includes each listing&#8217;s images in the post_images column. How you import them depends on whether the CSV goes back into the same site or into a new one. What the post_images column holds Each image is written as url|media ID|title|caption, and images are separated by two colons, ::. The first image is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"article\/tags":[],"article\/categories":[211,432],"class_list":["post-2506","gd_place","type-gd_place","status-publish","hentry","gd_placecategory-tips-tricks-more","gd_placecategory-how-tos"],"_links":{"self":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/types\/gd_place"}],"author":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/comments?post=2506"}],"version-history":[{"count":1,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2506\/revisions"}],"predecessor-version":[{"id":2584,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/2506\/revisions\/2584"}],"wp:attachment":[{"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/media?parent=2506"}],"wp:term":[{"taxonomy":"gd_place_tags","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/tags?post=2506"},{"taxonomy":"gd_placecategory","embeddable":true,"href":"https:\/\/wpgeodirectory.com\/documentation\/wp-json\/wp\/v2\/article\/categories?post=2506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}