Support » Networking WordPress » How to use WP-CLI import xmls for subsites

  • So we testing WP Multisite setup but have no clue how import posts xml file to subsite.

    I made 2-3 manual posts from subsite, modified them and tried reimporting them using following command
    wp import /opt/bitnami/apps/wordpress/htdocs/xml –authors=skip –skip=attachment –path=/opt/bitnami/apps/wordpress/htdocs/

    This command imported posts into main site not in subsite.

    kindly tell me How to import posts via xml into subsite via WP CLI

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • You may need to use the —-url parameter and specify your sub-site URL.

    wp import /opt/bitnami/apps/wordpress/htdocs/xml –authors=skip –skip=attachment –path=/opt/bitnami/apps/wordpress/htdocs/ —-url=http://yoursubsite.test

Viewing 1 replies (of 1 total)
  • The topic ‘How to use WP-CLI import xmls for subsites’ is closed to new replies.