[{"data":1,"prerenderedAt":305},["ShallowReactive",2],{"docs-page-\u002Fadvanced\u002Fimport-export-move-waymark-data":3,"docs-navigation":200,"docs-surroundings-\u002Fadvanced\u002Fimport-export-move-waymark-data":302},{"id":4,"title":5,"body":6,"description":192,"extension":193,"meta":194,"navigation":195,"path":196,"seo":197,"stem":198,"__hash__":199},"docs\u002Fadvanced\u002Fimport-export-move-waymark-data.md","Import\u002FExport\u002FMove Waymark Data",{"type":7,"value":8,"toc":187},"minimark",[9,18,23,35,39,46,93,100,104,114,121,178,183],[10,11,14],"callout",{"title":12,"type":13},"Back-Up!","warning",[15,16,17],"p",{},"Always perform a full back-up of your site before performing these steps.",[19,20,22],"h2",{"id":21},"maps","Maps",[15,24,25,26,30,31,34],{},"Waymark stores Maps as Custom Post Types (custom post type ID ",[27,28,29],"code",{},"waymark_map","). These can be exported using the built-in ",[27,32,33],{},"Tools > Export"," screen in the WordPress admin by selecting “Maps” from the Export list.",[19,36,38],{"id":37},"settings","Settings",[15,40,41,42,45],{},"To copy all of the Waymark Settings, copy the ",[27,43,44],{},"Waymark_Settings"," item from the following wp_options database table to your new database (after Waymark has been activated):",[47,48,53],"pre",{"className":49,"code":50,"language":51,"meta":52,"style":52},"language-sql shiki shiki-themes github-light github-dark","SELECT option_value\nFROM wp_options\nWHERE option_name = 'Waymark_Settings'\n","sql","",[27,54,55,68,77],{"__ignoreMap":52},[56,57,60,64],"span",{"class":58,"line":59},"line",1,[56,61,63],{"class":62},"szBVR","SELECT",[56,65,67],{"class":66},"sVt8B"," option_value\n",[56,69,71,74],{"class":58,"line":70},2,[56,72,73],{"class":62},"FROM",[56,75,76],{"class":66}," wp_options\n",[56,78,80,83,86,89],{"class":58,"line":79},3,[56,81,82],{"class":62},"WHERE",[56,84,85],{"class":66}," option_name ",[56,87,88],{"class":62},"=",[56,90,92],{"class":91},"sZZnC"," 'Waymark_Settings'\n",[10,94,97],{"title":95,"type":96},"Note","info",[15,98,99],{},"Your database may be using a different wp_table prefix.",[19,101,103],{"id":102},"images","Images",[15,105,106,107,109,110,113],{},"Images are stored in the Media Library and should also be able to be exported and imported using the ",[27,108,33],{}," and ",[27,111,112],{},"Tools > Import"," screens in the WordPress admin.",[15,115,116,117,120],{},"However, as Waymark stores links to Images as URLs a search\u002Freplace on the WordPress ",[27,118,119],{},"wp_postmeta"," database table will need to be performed to update these:",[47,122,124],{"className":49,"code":123,"language":51,"meta":52,"style":52},"UPDATE wp_postmeta\nSET meta_value = replace(meta_value,'***OLD_SITE_URL***','***NEW_SITE_URL***')\nWHERE meta_key = 'waymark_map_data';\n",[27,125,126,134,163],{"__ignoreMap":52},[56,127,128,131],{"class":58,"line":59},[56,129,130],{"class":62},"UPDATE",[56,132,133],{"class":66}," wp_postmeta\n",[56,135,136,139,142,144,148,151,154,157,160],{"class":58,"line":70},[56,137,138],{"class":62},"SET",[56,140,141],{"class":66}," meta_value ",[56,143,88],{"class":62},[56,145,147],{"class":146},"sj4cs"," replace",[56,149,150],{"class":66},"(meta_value,",[56,152,153],{"class":91},"'***OLD_SITE_URL***'",[56,155,156],{"class":66},",",[56,158,159],{"class":91},"'***NEW_SITE_URL***'",[56,161,162],{"class":66},")\n",[56,164,165,167,170,172,175],{"class":58,"line":79},[56,166,82],{"class":62},[56,168,169],{"class":66}," meta_key ",[56,171,88],{"class":62},[56,173,174],{"class":91}," 'waymark_map_data'",[56,176,177],{"class":66},";\n",[10,179,180],{"title":95,"type":96},[15,181,182],{},"Your database may be using a different wp_ table prefix.",[184,185,186],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":52,"searchDepth":70,"depth":79,"links":188},[189,190,191],{"id":21,"depth":70,"text":22},{"id":37,"depth":70,"text":38},{"id":102,"depth":70,"text":103},"As Waymark uses the WordPress Custom Post Type system, it is possible to move Waymark data between WordPress sites.","md",{},true,"\u002Fadvanced\u002Fimport-export-move-waymark-data",{"title":5,"description":192},"advanced\u002Fimport-export-move-waymark-data","de8NDF_FIY4UJpgKSBMOfzm0rO2JYftgpZIDsV1PuKo",[201,217,234,273,283,287],{"title":202,"path":203,"stem":204,"children":205},"Advanced","\u002Fadvanced","advanced",[206,208,212,213],{"title":202,"path":203,"stem":207},"advanced\u002Findex",{"title":209,"path":210,"stem":211},"Debug Mode","\u002Fadvanced\u002Fdebug-mode","advanced\u002Fdebug-mode",{"title":5,"path":196,"stem":198},{"title":214,"path":215,"stem":216},"Using the Global Callback Function","\u002Fadvanced\u002Fusing-the-global-callback-function","advanced\u002Fusing-the-global-callback-function",{"title":218,"path":219,"stem":220,"children":221},"Customising","\u002Fcustomising","customising\u002Findex",[222,223,227,230],{"title":218,"path":219,"stem":220},{"title":224,"path":225,"stem":226},"Markers","\u002Fcustomising\u002Fmarkers","customising\u002Fmarkers",{"title":38,"path":228,"stem":229},"\u002Fcustomising\u002Fsettings","customising\u002Fsettings",{"title":231,"path":232,"stem":233},"Styling With CSS Selectors","\u002Fcustomising\u002Fstyling-with-css-selectors","customising\u002Fstyling-with-css-selectors",{"title":235,"path":236,"stem":237,"children":238},"Examples","\u002Fexamples","examples",[239,241,245,249,253,257,261,265,269],{"title":235,"path":236,"stem":240},"examples\u002Findex",{"title":242,"path":243,"stem":244},"Elevation Profile Colours","\u002Fexamples\u002Felevation-profile-colours","examples\u002Felevation-profile-colours",{"title":246,"path":247,"stem":248},"Hide Locate Button","\u002Fexamples\u002Fhide-locate-button","examples\u002Fhide-locate-button",{"title":250,"path":251,"stem":252},"Hide Tooltip Type Labels","\u002Fexamples\u002Fhide-tooltip-type-labels","examples\u002Fhide-tooltip-type-labels",{"title":254,"path":255,"stem":256},"Hiding Map Controls","\u002Fexamples\u002Fhiding-map-controls","examples\u002Fhiding-map-controls",{"title":258,"path":259,"stem":260},"Marker Without Background","\u002Fexamples\u002Fmarker-without-background","examples\u002Fmarker-without-background",{"title":262,"path":263,"stem":264},"Move the Locate Button","\u002Fexamples\u002Fmove-the-locate-button","examples\u002Fmove-the-locate-button",{"title":266,"path":267,"stem":268},"Show\u002FHide Types Initially","\u002Fexamples\u002Fshow-hide-types-initially","examples\u002Fshow-hide-types-initially",{"title":270,"path":271,"stem":272},"Text Markers","\u002Fexamples\u002Ftext-markers","examples\u002Ftext-markers",{"title":274,"path":275,"stem":276,"children":277},"Features","\u002Ffeatures","features\u002Findex",[278,279],{"title":274,"path":275,"stem":276},{"title":280,"path":281,"stem":282},"Submissions","\u002Ffeatures\u002Fsubmissions","features\u002Fsubmissions",{"title":284,"path":285,"stem":286},"Help","\u002F","index",{"title":288,"path":289,"stem":290,"children":291},"Tutorials","\u002Ftutorials","tutorials",[292,294,298],{"title":288,"path":289,"stem":293},"tutorials\u002Findex",{"title":295,"path":296,"stem":297},"Creating Your First Map","\u002Ftutorials\u002Fcreating-your-first-map","tutorials\u002Fcreating-your-first-map",{"title":299,"path":300,"stem":301},"Drawing a Route","\u002Ftutorials\u002Fdrawing-a-route","tutorials\u002Fdrawing-a-route",[303,304],{"title":209,"path":210,"stem":211,"children":-1},{"title":214,"path":215,"stem":216,"children":-1},1793659144809]