{"id":1335,"date":"2024-12-27T12:48:20","date_gmt":"2024-12-27T12:48:20","guid":{"rendered":"https:\/\/utillz.com\/docs\/?page_id=1335"},"modified":"2024-12-30T05:30:59","modified_gmt":"2024-12-30T05:30:59","slug":"import-csv","status":"publish","type":"page","link":"https:\/\/utillz.com\/docs\/listing\/import-csv\/","title":{"rendered":"Import CSV"},"content":{"rendered":"<h3 id=\"1-accessing-the-import-functionality\"><b>1. Accessing the Import Functionality<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Location in Admin Dashboard<\/b><span style=\"font-weight: 400;\">:<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Navigate to <\/span><b>Dashboard \u2192 Listing Type\u2192Import CSV<\/b><span style=\"font-weight: 400;\"> in the WordPress admin menu.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">This page allows you to upload a CSV file to import Listings in bulk.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\"><img class=\"alignnone size-full wp-image-1338\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_3.png\" alt=\"\" width=\"120\" height=\"375\" srcset=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_3.png 120w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_3-96x300.png 96w\" sizes=\"(max-width: 120px) 100vw, 120px\" \/><\/span><\/li>\n<\/ul>\n<h3 id=\"2-uploading-the-csv-file\"><b>2. Uploading the CSV File<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>CSV Structure<\/b><span style=\"font-weight: 400;\">: The CSV file should contain the following columns:<\/span>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Title<\/b><span style=\"font-weight: 400;\">: The post title.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Content<\/b><span style=\"font-weight: 400;\">: The post content.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>ID<\/b><span style=\"font-weight: 400;\">: Optional. If the ID exists, the post will be updated; otherwise, a new post will be created.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>rz_gallery<\/b><span style=\"font-weight: 400;\">: Optional. If provided, should contain a comma-separated list of image URLs for the gallery.<img class=\"alignnone size-full wp-image-1336\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_5.png\" alt=\"\" width=\"780\" height=\"438\" srcset=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_5.png 780w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_5-300x168.png 300w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_5-768x431.png 768w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Additional custom fields (metadata) as needed.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Keep the rz_booking_pending and <\/span><span style=\"font-weight: 400;\">rz_booking_booked blank.<img class=\"alignnone size-full wp-image-1337\" src=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_4.png\" alt=\"\" width=\"779\" height=\"438\" srcset=\"https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_4.png 779w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_4-300x169.png 300w, https:\/\/utillz.com\/docs\/wp-content\/uploads\/2024\/12\/Screenshot_4-768x432.png 768w\" sizes=\"(max-width: 779px) 100vw, 779px\" \/><\/span><\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Steps to Import<\/b><span style=\"font-weight: 400;\">:<\/span>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Choose the CSV file from your computer.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Click the <\/span><b>Upload and Import CSV<\/b><span style=\"font-weight: 400;\"> button.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">The system will process the file, create or update posts, and add metadata accordingly.<\/span><\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<h3 id=\"3-error-logging-and-validation\"><b>3. Error Logging and Validation<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">The import process is logged for debugging purposes. If there are any errors (e.g., file upload issues or invalid data), they are logged for review.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">A validation check ensures the file is a CSV and that the content is in the correct format.<\/span><\/li>\n<\/ul>\n<h3 id=\"4-post-import-actions\"><b>4. Post-Import Actions<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">After the import process completes:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">The admin is redirected back to the import page with a <\/span><b>success message<\/b><span style=\"font-weight: 400;\"> confirming the import was successful.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Accessing the Import Functionality Location in Admin Dashboard: Navigate to Dashboard \u2192 Listing Type\u2192Import CSV in the WordPress admin menu. This page allows you &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":218,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/1335"}],"collection":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/comments?post=1335"}],"version-history":[{"count":0,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/1335\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/pages\/218"}],"wp:attachment":[{"href":"https:\/\/utillz.com\/docs\/wp-json\/wp\/v2\/media?parent=1335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}