Skip to content

Instantly share code, notes, and snippets.

@2PyKu
2PyKu / cat-xml.txt
Created December 14, 2020 06:39
Шаблон импорта категорий с соблюдением иерархии родителей, но цифровыми слагами. Скопировать, сохранить в txt, импортировать в настройках WPAI и выбрать при настройке нового импорта.
[{"id":"5","options":"a:447:{s:4:\"type\";s:4:\"post\";s:21:\"is_override_post_type\";i:0;s:15:\"post_type_xpath\";s:0:\"\";s:8:\"deligate\";s:0:\"\";s:11:\"wizard_type\";s:3:\"new\";s:11:\"custom_type\";s:10:\"taxonomies\";s:14:\"featured_delim\";s:1:\",\";s:10:\"atch_delim\";s:1:\",\";s:25:\"is_search_existing_attach\";i:0;s:15:\"post_taxonomies\";a:0:{}s:6:\"parent\";i:0;s:23:\"is_multiple_page_parent\";s:3:\"yes\";s:18:\"single_page_parent\";s:0:\"\";s:5:\"order\";i:0;s:6:\"status\";s:7:\"publish\";s:13:\"page_template\";s:7:\"default\";s:25:\"is_multiple_page_template\";s:3:\"yes\";s:20:\"single_page_template\";s:0:\"\";s:15:\"page_taxonomies\";a:0:{}s:9:\"date_type\";s:8:\"specific\";s:4:\"date\";s:3:\"now\";s:10:\"date_start\";s:3:\"now\";s:8:\"date_end\";s:3:\"now\";s:11:\"custom_name\";a:0:{}s:12:\"custom_value\";a:0:{}s:13:\"custom_format\";a:2:{i:0;s:1:\"0\";i:1;s:1:\"0\";}s:14:\"custom_mapping\";a:0:{}s:17:\"serialized_values\";a:2:{i:0;s:7:\"[\"\",\"\"]\";i:1;s:7:\"[\"\",\"\"]\";}s:20:\"custom_ma